forked from mirror/OpenTTD
(svn r2146) - Fix: [ 1175973 ] Crash if any key is pressed in startup (pkirchhofer)
This commit is contained in:
7
window.c
7
window.c
@@ -1280,8 +1280,11 @@ static void HandleKeypress(uint32 key)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (we.keypress.cont)
|
if (we.keypress.cont) {
|
||||||
FindWindowById(WC_MAIN_TOOLBAR, 0)->wndproc(w, &we);
|
w = FindWindowById(WC_MAIN_TOOLBAR, 0);
|
||||||
|
// When there is no toolbar w is null, check for that
|
||||||
|
if (w != NULL) w->wndproc(w, &we);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void UpdateTileSelection(void);
|
extern void UpdateTileSelection(void);
|
||||||
|
Reference in New Issue
Block a user