summaryrefslogtreecommitdiffstats
path: root/src/core/Fire.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-12 21:17:16 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-12 21:17:16 +0100
commit6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc (patch)
treed8024bfb97f314c4354440c78e225518ec08ee13 /src/core/Fire.cpp
parentbetter fix (diff)
downloadre3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.tar
re3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.tar.gz
re3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.tar.bz2
re3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.tar.lz
re3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.tar.xz
re3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.tar.zst
re3-6d61f9d2e1185f169a1d5abb8f37b0f0a93869bc.zip
Diffstat (limited to '')
-rw-r--r--src/core/Fire.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp
index a47ca3cf..e73ffea1 100644
--- a/src/core/Fire.cpp
+++ b/src/core/Fire.cpp
@@ -107,7 +107,11 @@ CFire::ProcessFire(void)
}
}
}
- if (!FindPlayerVehicle() && !FindPlayerPed()->m_pFire && !(FindPlayerPed()->bFireProof)
+ if (!FindPlayerVehicle() &&
+#ifdef FIX_BUGS
+ FindPlayerPed() &&
+#endif
+ !FindPlayerPed()->m_pFire && !(FindPlayerPed()->bFireProof)
&& ((FindPlayerPed()->GetPosition() - m_vecPos).MagnitudeSqr() < 2.0f)) {
FindPlayerPed()->DoStuffToGoOnFire();
gFireManager.StartFire(FindPlayerPed(), m_pSource, 0.8f, 1);