Skip to content

Commit

Permalink
Fix rare crash on game start
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Sep 17, 2017
1 parent 239b070 commit 1a02ed5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _work/data/Scripts/Content/GFA/_intern/activate.d
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func void GFA_IsActive() {

// Check if currently in a menu or in a dialog
if (MEM_Game.pause_screen) || (!InfoManager_HasFinished()) {
if (!MEM_Timer.totalTime) {
GFA_ACTIVE = 1;
return;
};
GFA_SetCameraModes(0);
GFA_AimMovement(0, "");
GFA_DisableAutoTurning(0);
Expand Down

0 comments on commit 1a02ed5

Please sign in to comment.