CMain::StreamNewGameState merge fixes

This commit is contained in:
Jack Andersen 2016-12-29 20:43:29 -10:00
parent 735183d51a
commit 2699d96989
1 changed files with 3 additions and 3 deletions

View File

@ -131,10 +131,10 @@ void CMain::LoadAudio()
void CMain::StreamNewGameState(CBitStreamReader& r, u32 idx)
{
bool fusionBackup = g_GameState->SystemOptions().GetPlayerHasFusion();
x128_globalObjects.x134_gameState = CGameState(r, idx);
g_GameState = &x128_globalObjects.x134_gameState;
x128_globalObjects.x134_gameState = std::make_unique<CGameState>(r, idx);
g_GameState = x128_globalObjects.x134_gameState.get();
g_GameState->SystemOptions().SetPlayerHasFusion(fusionBackup);
g_GameState->GetPlayerState()->SetFusion(fusionBackup);
g_GameState->GetPlayerState()->SetIsFusionEnabled(fusionBackup);
g_GameState->HintOptions().SetNextHintTime();
}