From 8a0fffa67238e25957bc431d43ac9cb51d787c7a Mon Sep 17 00:00:00 2001 From: Wyatt Radkiewicz <35124673+wyatt-radkiewicz@users.noreply.github.com> Date: Wed, 5 Apr 2023 01:11:23 -0700 Subject: [PATCH] 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. --- base/commandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/commandLine.cpp b/base/commandLine.cpp index cb58d51a460..d3a53587a46 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -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