From 8d5ad5f7569ed237a2c2882b361a922494e9b30f Mon Sep 17 00:00:00 2001 From: Mauller <26652186+Mauller@users.noreply.github.com> Date: Sat, 12 Apr 2025 09:46:40 +0100 Subject: [PATCH] [GEN][ZH] fix GameClient to reset drawable ID in GameClient::reset (#657) --- Generals/Code/GameEngine/Source/GameClient/GameClient.cpp | 3 +++ GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp b/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp index d5d380c7e4a..676e82014d4 100644 --- a/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp @@ -457,6 +457,9 @@ void GameClient::reset( void ) // clear any drawable TOC we might have m_drawableTOC.clear(); + // TheSuperHackers @fix Mauller 13/04/2025 Reset the drawable id so it does not keep growing over the lifetime of the game. + m_nextDrawableID = (DrawableID)1; + } // end reset /** ----------------------------------------------------------------------------------------------- diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp index 17004623c97..5c3aa0bd412 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp @@ -478,6 +478,9 @@ void GameClient::reset( void ) // clear any drawable TOC we might have m_drawableTOC.clear(); + // TheSuperHackers @fix Mauller 13/04/2025 Reset the drawable id so it does not keep growing over the lifetime of the game. + m_nextDrawableID = (DrawableID)1; + } // end reset /** -----------------------------------------------------------------------------------------------