Skip to content

Commit 8d325d9

Browse files
committed
Change TheWindowManager Check in ControlBar::getStarImage
1 parent 7df3c68 commit 8d325d9

File tree

1 file changed

+3
-1
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar

1 file changed

+3
-1
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,9 @@ const Image *ControlBar::getStarImage(void )
16541654
else
16551655
m_lastFlashedAtPointValue = ThePlayerList->getLocalPlayer()->getSciencePurchasePoints();
16561656

1657-
GameWindow *win= TheWindowManager ? TheWindowManager->winGetWindowFromId( NULL, TheNameKeyGenerator->nameToKey( "ControlBar.wnd:ButtonGeneral" ) ) : NULL;
1657+
if (TheWindowManager == NULL)
1658+
return NULL;
1659+
GameWindow *win= TheWindowManager->winGetWindowFromId( NULL, TheNameKeyGenerator->nameToKey( "ControlBar.wnd:ButtonGeneral" ) );
16581660
if(!win)
16591661
return NULL;
16601662
if(!m_genStarFlash)

0 commit comments

Comments
 (0)