Changeset - r12691:e04e5da97d7e
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-08-13 12:49:51
smatz@openttd.org
(svn r17164) -Fix: crash when clicking on the spacer in the build airport GUI
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/airport_gui.cpp
Show inline comments
 
@@ -90,9 +90,9 @@ struct BuildAirToolbarWindow : Window {
 

	
 
	virtual void OnClick(Point pt, int widget)
 
	{
 
		if (widget - ATW_AIRPORT >= 0) {
 
			_build_air_button_proc[widget - ATW_AIRPORT](this);
 
		}
 
		if (!IsInsideBS(widget, ATW_AIRPORT, lengthof(_build_air_button_proc))) return;
 

	
 
		_build_air_button_proc[widget - ATW_AIRPORT](this);
 
	}
 

	
 

	
0 comments (0 inline, 0 general)