Changes guard statement to if statement

This commit is contained in:
Riley Testut 2016-08-10 23:23:14 -05:00
parent 694adb6c6c
commit 856c412a78

View File

@ -512,10 +512,11 @@ private extension SaveStatesViewController
// Kinda hacky, but isMovingFromParentViewController only returns yes when popping off navigation controller, and not being dismissed modally // Kinda hacky, but isMovingFromParentViewController only returns yes when popping off navigation controller, and not being dismissed modally
// Because of this, this is only run when the user returns to PauseMenuViewController, and not when they choose a save state to load // Because of this, this is only run when the user returns to PauseMenuViewController, and not when they choose a save state to load
guard self.isMovingFromParentViewController else { return } if self.isMovingFromParentViewController
{
self.prepareEmulatorCore() self.prepareEmulatorCore()
} }
}
func prepareEmulatorCore() func prepareEmulatorCore()
{ {