mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Explicitly zero declared struct ScreenSettingss
Performance cost is negligible and well worth being safe in case there are more members added in the future but we forget to initialize them.
This commit is contained in:
@@ -572,6 +572,7 @@ int main(int argc, char *argv[])
|
||||
// Prioritize unlock.vvv first (2.2 and below),
|
||||
// but settings have been migrated to settings.vvv (2.3 and up)
|
||||
struct ScreenSettings screen_settings;
|
||||
SDL_zero(screen_settings);
|
||||
ScreenSettings_default(&screen_settings);
|
||||
game.loadstats(&screen_settings);
|
||||
game.loadsettings(&screen_settings);
|
||||
|
||||
Reference in New Issue
Block a user