More fixes

This commit is contained in:
Sergeanur
2020-12-15 04:16:29 +02:00
parent ab3e258f19
commit ac95138c18
4 changed files with 5 additions and 80 deletions

View File

@@ -974,7 +974,7 @@ public:
PedState GetPedState(void) { return m_nPedState; }
void SetPedState(PedState state)
{
if (GetPedState() == PED_FOLLOW_PATH)
if (GetPedState() == PED_FOLLOW_PATH && state != PED_FOLLOW_PATH)
ClearFollowPath();
m_nPedState = state;
}