summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-12 12:42:57 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-12 12:42:57 +0200
commit417646819c5d88bb7774bbb0341d92ada3293196 (patch)
tree4da51aa3be7f75002b16985207d9411d900dde7d /src/vehicles/Vehicle.cpp
parentmark file and fix screen offset (diff)
parentMerge pull request #753 from majesticCoding/miami (diff)
downloadre3-417646819c5d88bb7774bbb0341d92ada3293196.tar
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.gz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.bz2
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.lz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.xz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.zst
re3-417646819c5d88bb7774bbb0341d92ada3293196.zip
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 6e86dbe4..994f3c99 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -1303,7 +1303,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