diff --git a/win/win32/mhmap.c b/win/win32/mhmap.c index 79d21e36f..6850cbf70 100644 --- a/win/win32/mhmap.c +++ b/win/win32/mhmap.c @@ -524,7 +524,7 @@ void onPaint(HWND hWnd) /* draw the map */ for(i=paint_rt.left; imap[i][j]>0) { + if(data->map[i][j]>=0) { uchar ch; TCHAR wch; RECT glyph_rect; @@ -558,7 +558,7 @@ void onPaint(HWND hWnd) /* draw the map */ for(i=paint_rt.left; imap[i][j]>0) { + if(data->map[i][j]>=0) { short ntile; int t_x, t_y; RECT glyph_rect;