summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-12 23:05:12 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-12 23:05:12 +0300
commit01c95378e1cffe7ef09f44d992a0144d9a5691a4 (patch)
tree6e797ece1b38c9e86f9d7af6b97cc39fa897347c /src/core
parent82c40b73ca4a4e67e0e53a34caac546f012fe54d (diff)
fixed some replay bugs
Diffstat (limited to 'src/core')
-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 c6dece6a..e1be4194 100644
--- a/src/core/Fire.cpp
+++ b/src/core/Fire.cpp
@@ -90,7 +90,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);