summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-07-03 00:32:47 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2021-07-03 00:42:24 +0200
commita8549e86a7c29c38e6a0570b8ecd88f03db98e9a (patch)
tree381f2ba0a0facce8923787276940187cf2cb8578 /src/weapons
parentPeds: Efforts to find the reason of crashes on GCC 7.5.0 (diff)
downloadre3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.tar
re3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.tar.gz
re3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.tar.bz2
re3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.tar.lz
re3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.tar.xz
re3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.tar.zst
re3-a8549e86a7c29c38e6a0570b8ecd88f03db98e9a.zip
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();