From ea2102efcb600d1c98bdef34bef417e1f49f1d2b Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Wed, 9 Feb 2022 15:26:50 +0100 Subject: [PATCH] Init m_pNextTraverseEntity --- src/game/client/prediction/gameworld.h | 2 +- src/game/server/gameworld.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/prediction/gameworld.h b/src/game/client/prediction/gameworld.h index 47fe8d75e..dc96b4268 100644 --- a/src/game/client/prediction/gameworld.h +++ b/src/game/client/prediction/gameworld.h @@ -94,7 +94,7 @@ public: private: void RemoveEntities(); - CEntity *m_pNextTraverseEntity; + CEntity *m_pNextTraverseEntity = nullptr; CEntity *m_apFirstEntityTypes[NUM_ENTTYPES]; class CCharacter *m_apCharacters[MAX_CLIENTS]; diff --git a/src/game/server/gameworld.h b/src/game/server/gameworld.h index 82cf0b408..982fb2edd 100644 --- a/src/game/server/gameworld.h +++ b/src/game/server/gameworld.h @@ -32,7 +32,7 @@ private: void Reset(); void RemoveEntities(); - CEntity *m_pNextTraverseEntity; + CEntity *m_pNextTraverseEntity = nullptr; CEntity *m_apFirstEntityTypes[NUM_ENTTYPES]; class CGameContext *m_pGameServer;