Skip to content

Fix possible segfault for cvars registered from lua with flag CV_CALL

Indev requested to merge Indev/Kart-Public:fix-cv-call-segfault into master

When adding cvar via CV_RegisterVar from lua, game uses lua_next to iterate through fields in cvar table, which doesn't guarantee order of keys. So sometimes key func could go before key flags, and because of that cvar would have flag CV_CALL but no func set.

Merge request reports

Loading