BaseGame Template: Fix script assert on canceling game options changes

This commit is contained in:
dottools 2022-05-30 15:54:32 -05:00
parent 925f6ebe41
commit 8267c13696

View file

@ -141,7 +141,7 @@ function OptionsMenu::canClose(%this)
if(%this.unappliedChanges.count() != 0)
{
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");
return false;
}