diff --git a/Generals/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp b/Generals/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp index 24db1aab346..87eb787a297 100644 --- a/Generals/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp +++ b/Generals/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp @@ -448,6 +448,9 @@ void SpecialPowerModule::triggerSpecialPower( const Coord3D *location ) //------------------------------------------------------------------------------------------------- void SpecialPowerModule::createViewObject( const Coord3D *location ) { + if( location == nullptr ) + return; + const SpecialPowerModuleData *modData = getSpecialPowerModuleData(); const SpecialPowerTemplate *powerTemplate = modData->m_specialPowerTemplate; diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp index 34d3ba6a126..ad83e08ccc7 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp @@ -494,6 +494,9 @@ void SpecialPowerModule::triggerSpecialPower( const Coord3D *location ) //------------------------------------------------------------------------------------------------- void SpecialPowerModule::createViewObject( const Coord3D *location ) { + if( location == nullptr ) + return; + const SpecialPowerModuleData *modData = getSpecialPowerModuleData(); const SpecialPowerTemplate *powerTemplate = modData->m_specialPowerTemplate;