Skip to content

Unset zstring if a preset value is used

James R. requested to merge cvar-zstring-fix into next

Well, zstring and preset values can only coexist in a cvar with MIN, MAX and then some other values. If a value between MIN and MAX is used (inclusive), then the zstring is allocated. This could be bad when CV_LoadVars checks zstring to determine if the current value string was allocated.

EDIT: It seems this actually fixes #487 (closed).

Edited by James R.

Merge request reports