mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r2146) - Fix: [ 1175973 ] Crash if any key is pressed in startup (pkirchhofer)
This commit is contained in:
parent
b2c7543204
commit
00c819c0d5
7
window.c
7
window.c
@ -1280,8 +1280,11 @@ static void HandleKeypress(uint32 key)
|
||||
break;
|
||||
}
|
||||
|
||||
if (we.keypress.cont)
|
||||
FindWindowById(WC_MAIN_TOOLBAR, 0)->wndproc(w, &we);
|
||||
if (we.keypress.cont) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user