summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-04 15:00:41 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-04 15:01:07 +0200
commit1cea84d2b1673bfd86e1698c27c381e1488c77cf (patch)
tree41fcb374c97437d25261ffbf3e430313997f13ef /src/peds/Ped.cpp
parentMerge branch 'master' of https://github.com/GTAmodding/re3 into erorcun (diff)
downloadre3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.tar
re3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.tar.gz
re3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.tar.bz2
re3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.tar.lz
re3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.tar.xz
re3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.tar.zst
re3-1cea84d2b1673bfd86e1698c27c381e1488c77cf.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 67fe7788..7a1bc3fc 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -4359,7 +4359,7 @@ CPed::RestorePreviousState(void)
case PED_WANDER_PATH:
m_nPedState = PED_WANDER_PATH;
bIsRunning = false;
- if (!bFindNewNodeAfterStateRestore) {
+ if (bFindNewNodeAfterStateRestore) {
if (m_pNextPathNode) {
CVector diff = m_pNextPathNode->GetPosition() - GetPosition();
if (diff.MagnitudeSqr() < sq(7.0f)) {