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(gameengine): guard Chinook destination check against a null locomotor
Olcay Seygan3c56ff0e1160
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cppindex 0113527fe..fb0ab5432 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp@@ -1024,7 +1024,9 @@ Bool ChinookAIUpdate::isAllowedToAdjustDestination() constif (m_flightStatus == CHINOOK_LANDED)return false;- if( getCurLocomotor()->isInvalidPositionAllowed() )+ // A script can order a Chinook along a waypoint path before any locomotor is chosen.+ const Locomotor* locomotor = getCurLocomotor();+ if( locomotor && locomotor->isInvalidPositionAllowed() ){return FALSE;}