Bläddra i källkod

BaseGame Template: Fix script assert on canceling game options changes

dottools 3 år sedan
förälder
incheckning
8267c13696
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Templates/BaseGame/game/data/UI/guis/optionsMenu.tscript

+ 1 - 1
Templates/BaseGame/game/data/UI/guis/optionsMenu.tscript

@@ -141,7 +141,7 @@ function OptionsMenu::canClose(%this)
       if(%this.unappliedChanges.count() != 0)
       if(%this.unappliedChanges.count() != 0)
       {
       {
          MessageBoxOKCancel("Discard Changes?", "You have unapplied changes to your settings, do you wish to apply or discard them?", 
          MessageBoxOKCancel("Discard Changes?", "You have unapplied changes to your settings, do you wish to apply or discard them?", 
-                        "OptionsMenu.apply(); MainMenuGUI.popPage();", "%this.unappliedChanges.empty(); " @ %this @ ".navigation.popPage();", 
+                        "OptionsMenu.apply(); MainMenuGUI.popPage();", "" @ %this @ ".unappliedChanges.empty(); " @ %this @ ".navigation.popPage();", 
                         "Apply", "Discard");
                         "Apply", "Discard");
          return false;
          return false;
       }
       }