(from <Someone>)

Fix crash.
WIN_MAP was used without before initialization in mswin_select_map_mode
This commit is contained in:
nethack.allison
2002-03-11 04:36:54 +00:00
parent 3578bd38da
commit 300b7b7495
3 changed files with 26 additions and 11 deletions
-1
View File
@@ -178,7 +178,6 @@ int mswin_map_mode(HWND hWnd, int mode)
SIZE mapSize;
data = (PNHMapWindow)GetWindowLong(hWnd, GWL_USERDATA);
if (!data) return mode;
if( mode == data->mapMode ) return mode;
oldMode = data->mapMode;