diff options
author | celestar <celestar@openttd.org> | 2006-04-09 18:35:24 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-09 18:35:24 +0000 |
commit | b0b5641639e042399e0ee3886740999678bc63ea (patch) | |
tree | 12a0d809d5b6459f0c812496bc5d33c53e02b884 | |
parent | ba0bc756b667aae1f12cda1ac4506209ebee7638 (diff) | |
download | openttd-b0b5641639e042399e0ee3886740999678bc63ea.tar.xz |
(svn r4341) -Fix (FS#101) When a player got bankrupt, slots were not cleared, because vehicles got deleted directly by DeleteVehicle
-rw-r--r-- | vehicle.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -548,6 +548,7 @@ void DeleteVehicle(Vehicle *v) u = v->next; has_artic_part = EngineHasArticPart(v); DeleteName(v->string_id); + if (v->type == VEH_Road) ClearSlot(v); v->type = 0; UpdateVehiclePosHash(v, INVALID_COORD, 0); v->next_hash = INVALID_VEHICLE; |