diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp index 487c922a93..7492ff089b 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp @@ -839,6 +839,8 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control, case GUI_COMMAND_SPECIAL_POWER_FROM_SHORTCUT: { const SpecialPowerTemplate *spTemplate = commandButton->getSpecialPowerTemplate(); + if( !spTemplate ) + break; SpecialPowerType spType = spTemplate->getSpecialPowerType(); Object* obj = ThePlayerList->getLocalPlayer()->findMostReadyShortcutSpecialPowerOfType( spType );