Skip to content

Commit

Permalink
Commanders are now loaded properly from a savegame.
Browse files Browse the repository at this point in the history
Fixes #3571
  • Loading branch information
mastersharp authored and vexed committed Dec 9, 2012
1 parent ec12de4 commit 1263eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/objmem.cpp
Expand Up @@ -397,8 +397,8 @@ void addDroid(DROID *psDroidToAdd, DROID *pList[MAX_PLAYERS])
addObjectToFuncList(apsSensorList, (BASE_OBJECT*)psDroidToAdd, 0);
}

// commanders have to get their group back
if (psDroidToAdd->droidType == DROID_COMMAND)
// commanders have to get their group back if not already loaded
if (psDroidToAdd->droidType == DROID_COMMAND && !psDroidToAdd->psGroup)
{
psGroup = grpCreate();
psGroup->add(psDroidToAdd);
Expand Down

0 comments on commit 1263eb2

Please sign in to comment.