aboutsummaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-07-03 01:32:47 +0300
committererorcun <erorcunerorcun@hotmail.com.tr>2021-07-03 01:42:24 +0300
commita8549e86a7c29c38e6a0570b8ecd88f03db98e9a (patch)
tree381f2ba0a0facce8923787276940187cf2cb8578 /src/weapons
parent424a6d90bd154e0b657e394b6dfced585fed01bd (diff)
Sanitizer fixes 2
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 5704c111..43a85db8 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -2266,7 +2266,11 @@ CWeapon::HitsGround(CEntity *holder, CVector *fireSource, CEntity *aimingTo)
void
CWeapon::BlowUpExplosiveThings(CEntity *thing)
{
+#ifdef FIX_BUGS
+ if ( thing && thing->IsObject() )
+#else
if ( thing )
+#endif
{
CObject *object = (CObject*)thing;
int32 mi = object->GetModelIndex();