Skip to content
Snippets Groups Projects

Fix possible segfault for cvars registered from lua with flag CV_CALL

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
Please register or sign in to reply
Loading