summaryrefslogtreecommitdiff
path: root/aircraft_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-30 01:17:53 +0000
committerDarkvater <darkvater@openttd.org>2006-12-30 01:17:53 +0000
commitc87fcab77216fa2a3c8a5a334c32099665b1241d (patch)
tree4ef6719359384448b5674c8f954ba1a88987d16d /aircraft_gui.c
parented2c8ecef5f2a6d62273ebccf0f82bad1f73ea4a (diff)
downloadopenttd-c87fcab77216fa2a3c8a5a334c32099665b1241d.tar.xz
(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the
query has no parent (eg give money, rename waypoint), the global function HandleOnEditText is used.
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r--aircraft_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c
index c488c1671..ded25b463 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -125,7 +125,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e)
case 2: /* rename */
v = GetVehicle(w->window_number);
SetDParam(0, v->unitnumber);
- ShowQueryString(v->string_id, STR_A030_NAME_AIRCRAFT, 31, 150, w->window_class, w->window_number, CS_ALPHANUMERAL);
+ ShowQueryString(v->string_id, STR_A030_NAME_AIRCRAFT, 31, 150, w, CS_ALPHANUMERAL);
break;
case 5: /* increase int */
mod = _ctrl_pressed? 5 : 10;