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 | 6926bd55fd4f1d36745082b668b052c1b6691ad8 (patch) | |
tree | 12a0d809d5b6459f0c812496bc5d33c53e02b884 | |
parent | a4a891c007c0346ba2e6a923013d082439a06fe0 (diff) | |
download | openttd-6926bd55fd4f1d36745082b668b052c1b6691ad8.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; |