summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-14 23:49:46 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-14 23:49:46 +0200
commit02c4ada807887975d5c61b510e05d2c689118282 (patch)
treeec1b29fd25cf0d9457c7e8251ae58083e161d5df /src
parentFix NearPed count going negative (diff)
downloadre3-02c4ada807887975d5c61b510e05d2c689118282.tar
re3-02c4ada807887975d5c61b510e05d2c689118282.tar.gz
re3-02c4ada807887975d5c61b510e05d2c689118282.tar.bz2
re3-02c4ada807887975d5c61b510e05d2c689118282.tar.lz
re3-02c4ada807887975d5c61b510e05d2c689118282.tar.xz
re3-02c4ada807887975d5c61b510e05d2c689118282.tar.zst
re3-02c4ada807887975d5c61b510e05d2c689118282.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/Fire.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp
index 8a6db0da..57315b15 100644
--- a/src/core/Fire.cpp
+++ b/src/core/Fire.cpp
@@ -457,7 +457,7 @@ CFireManager::StartScriptFire(const CVector &pos, CEntity *target, float strengt
if (target) {
if (target->IsPed()) {
ped->m_pFire = fire;
- if (target != (CVehicle *)FindPlayerPed()) {
+ if (target != FindPlayerPed()) {
CVector2D pos = target->GetPosition();
ped->SetFlee(pos, 10000);
ped->SetMoveAnim();