[Crash fix]

Fixed crash that occurs when exiting to the main menu through the pause screen while the game window is minimized or not active in general.
This commit is contained in:
JappaWakka 2021-01-20 17:38:30 +01:00 committed by Vitaly Mikhailov
parent eaab679379
commit 66079e69d0
1 changed files with 6 additions and 4 deletions

View File

@ -78,10 +78,12 @@
Screen.TextBox.reDelay = 0.0F
If Me.menuIndex = 0 Then
UpdateMain()
Else
UpdateQuit()
If Core.GameInstance.IsActive = True Then
If Me.menuIndex = 0 Then
UpdateMain()
Else
UpdateQuit()
End If
End If
End Sub