From 5ee436a321785d455355f9d25aa4e9fc98b90500 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Thu, 22 Jan 2015 00:19:12 -0800 Subject: [PATCH] oops, var scope fixes for VS2008 --- src/gui/sdlmain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index b6740a5dfac..f5453ddcad0 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -3314,7 +3314,7 @@ static void erasemapperfile() { void SetNumLock(void) { #ifdef WIN32 - if (opt_disable_numlock_check) + if (control->opt_disable_numlock_check) return; // Simulate a key press @@ -3689,7 +3689,7 @@ int main(int argc, char* argv[]) { change_output(4); GFX_SetIcon(); SDL_Prepare(); - if (menu.gui && !opt_nomenu) { + if (menu.gui && !control->opt_nomenu) { SetMenu(GetHWND(), LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU))); DrawMenuBar(GetHWND()); } @@ -3709,7 +3709,7 @@ int main(int argc, char* argv[]) { change_output(1); GFX_SetIcon(); SDL_Prepare(); - if (menu.gui && !opt_nomenu) { + if (menu.gui && !control->opt_nomenu) { SetMenu(GetHWND(), LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU))); DrawMenuBar(GetHWND()); }