BASE: Fixed typo when erasing window-size (#4866)

When parsing the command line option "window-size" the DO_LONG_OPTION
inserts "window-size" into the settings StringMap. This is soon later
deleted, but instead of deleting "window-size" it deletes the
non-existent setting "window_size". This is needed because width and
height are stored in "last_window_width" and "last_window_height"
respectivly and "window-size" is not used anywhere.
This commit is contained in:
Wyatt Radkiewicz
2023-04-05 10:11:23 +02:00
committed by GitHub
parent 231023244e
commit 8a0fffa672
+1 -1
View File
@@ -714,7 +714,7 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
settings["last_window_width"] = w;
settings["last_window_height"] = h;
settings.erase("window_size");
settings.erase("window-size");
END_OPTION
#endif