From 7ede8685ecd432aea1379d2377bdecc3159a2c79 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 7 Nov 2020 14:39:53 +0200 Subject: Ped comments fixes --- src/peds/Ped.cpp | 2 +- src/peds/Ped.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peds') diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 15eb79b6..3a04b196 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -522,7 +522,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this) m_delayedSoundID = -1; m_delayedSoundTimer = 0; CPopulation::UpdatePedCount((ePedType)m_nPedType, false); - m_lastComment = -1; + m_lastComment = UINT32_MAX; } // --MIAMI: Done diff --git a/src/peds/Ped.h b/src/peds/Ped.h index aa0a69db..6fc9ab67 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -646,7 +646,7 @@ public: uint16 m_lastQueuedSound; uint16 m_queuedSound; bool m_canTalk; - int32 m_lastComment; + uint32 m_lastComment; CVector m_vecSeekPosEx; // used for OBJECTIVE_GUARD_SPOT float m_distanceToCountSeekDoneEx; // used for OBJECTIVE_GUARD_SPOT -- cgit v1.2.3