We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df3c68 commit 8d325d9Copy full SHA for 8d325d9
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
@@ -1654,7 +1654,9 @@ const Image *ControlBar::getStarImage(void )
1654
else
1655
m_lastFlashedAtPointValue = ThePlayerList->getLocalPlayer()->getSciencePurchasePoints();
1656
1657
- GameWindow *win= TheWindowManager ? TheWindowManager->winGetWindowFromId( NULL, TheNameKeyGenerator->nameToKey( "ControlBar.wnd:ButtonGeneral" ) ) : NULL;
+ if (TheWindowManager == NULL)
1658
+ return NULL;
1659
+ GameWindow *win= TheWindowManager->winGetWindowFromId( NULL, TheNameKeyGenerator->nameToKey( "ControlBar.wnd:ButtonGeneral" ) );
1660
if(!win)
1661
return NULL;
1662
if(!m_genStarFlash)
0 commit comments