File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Upgrade Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ void ReplaceObjectUpgrade::upgradeImplementation( )
118118 {
119119 replacementObject->getControllingPlayer ()->onStructureConstructionComplete (NULL , replacementObject, FALSE );
120120
121+ // TheSuperHackers @bugfix Stubbjax 26/05/2025 If the old object was selected, select the new one.
121122 if (oldObjectSelected)
122123 {
123124 GameMessage* msg = TheMessageStream->appendMessage (GameMessage::MSG_CREATE_SELECTED_GROUP_NO_SOUND);
@@ -126,6 +127,7 @@ void ReplaceObjectUpgrade::upgradeImplementation( )
126127 TheInGameUI->selectDrawable (replacementObject->getDrawable ());
127128 }
128129
130+ // TheSuperHackers @bugfix Stubbjax 26/05/2025 If the old object was grouped, group the new one.
129131 if (oldObjectSquadNumber != NO_HOTKEY_SQUAD)
130132 {
131133 if (replacementObject->isLocallyControlled ())
You can’t perform that action at this time.
0 commit comments