diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-24 15:44:59 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-24 15:44:59 +0100 |
commit | 8cc3f867a6446c2275d985599b639bb9c665f16b (patch) | |
tree | 2223385fe81b4347f5a07af17667144318193334 /src/vehicles/Vehicle.cpp | |
parent | Merge pull request #893 from Nick007J/master (diff) | |
download | re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.gz re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.bz2 re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.lz re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.xz re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.zst re3-8cc3f867a6446c2275d985599b639bb9c665f16b.zip |
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 9adcf148..ba9348f0 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -1171,7 +1171,10 @@ CVehicle::AddPassenger(CPed *passenger, uint8 n) void CVehicle::RemoveDriver(void) { - SetStatus(STATUS_ABANDONED); +#ifdef FIX_BUGS + if (GetStatus() != STATUS_WRECKED) +#endif + SetStatus(STATUS_ABANDONED); pDriver = nil; } |