Changeset - r1642:613118ebf169
[Not reviewed]
master
0 1 0
matthijs - 20 years ago 2005-04-04 16:47:03
matthijs@openttd.org
(svn r2146) - Fix: [ 1175973 ] Crash if any key is pressed in startup (pkirchhofer)
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
window.c
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)