From 60c5b06bc81c481cb6b5d3de9027827227a32130 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 22 Jun 2010 02:59:33 +0000 Subject: [PATCH] win32: mapview: fix crash bug which should have rendered it useless, but was mysteriously not for anyone until just now for me --- desmume/src/windows/mapView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/windows/mapView.cpp b/desmume/src/windows/mapView.cpp index 8f54bf152..ad791a289 100644 --- a/desmume/src/windows/mapView.cpp +++ b/desmume/src/windows/mapView.cpp @@ -207,6 +207,8 @@ BOOL CALLBACK ViewMapsProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPara memset(MapView, 0, sizeof(MapView)); MapView->clear = true; MapView->autoup_secs = 1; + MapView->map = 0; + MapView->lcd = 0; SendMessage(GetDlgItem(hwnd, IDC_AUTO_UPDATE_SPIN), UDM_SETRANGE, 0, MAKELONG(99, 1)); SendMessage(GetDlgItem(hwnd, IDC_AUTO_UPDATE_SPIN),