Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameclient): initialise the load screen portrait windows
Olcay Seygan2c2caa20ace3
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/LoadScreen.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/LoadScreen.cppindex 5d076da9f..3ed3600c6 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/LoadScreen.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/LoadScreen.cpp@@ -1291,6 +1291,12 @@ MultiPlayerLoadScreen::MultiPlayerLoadScreen( void )//Initializations missing and neededm_mapPreview = NULL;+ // ...and these three, which init() only fills in when it finds the windows and the destructor+ // and update() both read+ m_portraitLocalGeneral = NULL;+ m_featuresLocalGeneral = NULL;+ m_nameLocalGeneral = NULL;+//for(Int i = 0; i < MAX_SLOTS; ++i){@@ -1578,10 +1584,15 @@ GameSpyLoadScreen::GameSpyLoadScreen( void )m_playerFavoriteFactions[i]= NULL;m_playerTotalDisconnects[i]= NULL;m_playerWin[i]= NULL;- m_playerWinLosses[i]= NULL;+ m_playerWinLosses[i]= NULL;}++ // the three the loop does not cover, for the same reason as MultiPlayerLoadScreen above+ m_portraitLocalGeneral = NULL;+ m_featuresLocalGeneral = NULL;+ m_nameLocalGeneral = NULL;}-+GameSpyLoadScreen::~GameSpyLoadScreen( void ){for(Int i = 0; i < MAX_SLOTS; ++i)