summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-02 17:39:01 +0000
committerbjarni <bjarni@openttd.org>2005-01-02 17:39:01 +0000
commit2351271889407382f5beeb7e10979c6396f5982c (patch)
tree7547330fea38a70130e2c9649772c7a1e4126759
parent29d8c5bb5056dc8efa6c953595056697fc876760 (diff)
downloadopenttd-2351271889407382f5beeb7e10979c6396f5982c.tar.xz
(svn r1324) Fixed problem with autoreplace GUI and msvc6 (thanks bociusz)
-rw-r--r--vehicle_gui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 83c13c3c9..eb2b7e9dc 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -418,10 +418,9 @@ static void SetupScrollStuffForReplaceWindow(Window *w)
case VEH_Ship: {
int num = NUM_SHIP_ENGINES;
Engine *e = &_engines[SHIP_ENGINES_INDEX];
- byte cargo;
+ byte cargo, refittable;
EngineInfo *info;
engine_id = SHIP_ENGINES_INDEX;
- byte refittable;
do {
info = &_engine_info[engine_id];
@@ -454,10 +453,10 @@ static void SetupScrollStuffForReplaceWindow(Window *w)
case VEH_Aircraft:{
int num = NUM_AIRCRAFT_ENGINES;
+ byte subtype;
Engine *e = &_engines[AIRCRAFT_ENGINES_INDEX];
EngineInfo *info;
engine_id = AIRCRAFT_ENGINES_INDEX;
- byte subtype;
do {
info = &_engine_info[engine_id];