diff options
author | tron <tron@openttd.org> | 2006-04-08 06:55:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-08 06:55:43 +0000 |
commit | 5be2aa3e9953c0904852c29e3fe88fb2a753b025 (patch) | |
tree | fded62d4dbb70fcc07ca376fa1bfca581d77f63a /ship_cmd.c | |
parent | fd10af66d7c27eea4ccab8b41e54136793468f71 (diff) | |
download | openttd-5be2aa3e9953c0904852c29e3fe88fb2a753b025.tar.xz |
(svn r4321) For ships check the ship state, not the road state. This bug was harmless, because both states are at the same byte in the vehicle type specific union.
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index b5c5dba4c..190c32b83 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -913,7 +913,7 @@ int32 CmdSellShip(int x, int y, uint32 flags, uint32 p1, uint32 p2) SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); - if (!IsTileDepotType(v->tile, TRANSPORT_WATER) || v->u.road.state != 0x80 || !(v->vehstatus&VS_STOPPED)) + if (!IsTileDepotType(v->tile, TRANSPORT_WATER) || v->u.ship.state != 0x80 || !(v->vehstatus&VS_STOPPED)) return_cmd_error(STR_980B_SHIP_MUST_BE_STOPPED_IN); if (flags & DC_EXEC) { |