Skip to content

Commit 095c4e3

Browse files
committed
bugfix: While observing, allow Angry Mobs to be selected and any objects to be deselected again
1 parent 02fdf4f commit 095c4e3

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,16 +1447,15 @@ void ControlBar::update( void )
14471447
// so we must isolate and evaluate only the Nexus
14481448
drawToEvaluateFor = TheGameClient->findDrawableByID( TheInGameUI->getSoloNexusSelectedDrawableID() ) ;
14491449
multiSelect = ( drawToEvaluateFor == NULL );
1450-
14511450
}
14521451
else // get the first and only drawble in the selection list
14531452
// TheSuperHackers @fix Mauller 07/04/2025 The first access to this can return an empty list
14541453
if (!TheInGameUI->getAllSelectedDrawables()->empty()) {
14551454
drawToEvaluateFor = TheInGameUI->getAllSelectedDrawables()->front();
1456-
Object *obj = drawToEvaluateFor ? drawToEvaluateFor->getObject() : NULL;
1457-
setPortraitByObject( obj );
14581455
}
14591456

1457+
Object* obj = drawToEvaluateFor ? drawToEvaluateFor->getObject() : NULL;
1458+
setPortraitByObject(obj);
14601459
return;
14611460
}
14621461

0 commit comments

Comments
 (0)