diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-05 15:09:44 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-05 15:09:44 +0200 |
commit | 2bfb54b192c54ee30be046b016ee10476fc73144 (patch) | |
tree | 88de9ac0946e50a544758134e35d0f07f684ed04 /src/vehicles/Vehicle.cpp | |
parent | small fix (diff) | |
download | re3-2bfb54b192c54ee30be046b016ee10476fc73144.tar re3-2bfb54b192c54ee30be046b016ee10476fc73144.tar.gz re3-2bfb54b192c54ee30be046b016ee10476fc73144.tar.bz2 re3-2bfb54b192c54ee30be046b016ee10476fc73144.tar.lz re3-2bfb54b192c54ee30be046b016ee10476fc73144.tar.xz re3-2bfb54b192c54ee30be046b016ee10476fc73144.tar.zst re3-2bfb54b192c54ee30be046b016ee10476fc73144.zip |
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 9aa90845..82754fe9 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -706,7 +706,7 @@ CVehicle::InflictDamage(CEntity* damagedBy, eWeaponType weaponType, float damage } } #ifdef FIX_BUGS // removing dumb case when shooting police car in player's own garage gives wanted level - if (GetModelIndex() == MI_POLICE && damagedBy == FindPlayerPed() && !bHasBeenOwnedByPlayer) + if (GetModelIndex() == MI_POLICE && damagedBy == FindPlayerPed() && damagedBy != nil && !bHasBeenOwnedByPlayer) #else if (GetModelIndex() == MI_POLICE && damagedBy == FindPlayerPed()) #endif |