Fixed crashes and potential weirdness when loading savegames from a Homeworld encounter screen
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3169 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1531,9 +1531,13 @@ UninitSolarSys (void)
|
||||
if (GLOBAL (CurrentActivity) & END_INTERPLANETARY)
|
||||
{
|
||||
GLOBAL (CurrentActivity) &= ~END_INTERPLANETARY;
|
||||
(*pSolarSysState->GenFunc) (UNINIT_NPCS);
|
||||
|
||||
SET_GAME_STATE (USED_BROADCASTER, 0);
|
||||
|
||||
if (!(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD)))
|
||||
{ // These are game state changing ops and so cannot be
|
||||
// called once another game has been loaded!
|
||||
(*pSolarSysState->GenFunc) (UNINIT_NPCS);
|
||||
SET_GAME_STATE (USED_BROADCASTER, 0);
|
||||
}
|
||||
}
|
||||
else if ((GLOBAL (CurrentActivity) & START_ENCOUNTER) && EncounterGroup)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user