From 7135178e3f376dcad54563f1ce9bef519586d651 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 21 Feb 2005 20:18:42 +0000 Subject: [PATCH] fix SaveTo not being used --- stepmania/Themes/default/Scripts/OptionsMenu.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/Themes/default/Scripts/OptionsMenu.lua b/stepmania/Themes/default/Scripts/OptionsMenu.lua index c13276b81d..4acaa5fd2c 100644 --- a/stepmania/Themes/default/Scripts/OptionsMenu.lua +++ b/stepmania/Themes/default/Scripts/OptionsMenu.lua @@ -47,17 +47,15 @@ OptionRowTable = Default = nil, -- set this LoadSelections = function(self, list, pn) - local Sort = PROFILEMAN:GetMachineProfile():GetSaved()[self.Name] - or self.Default + local Sort = self.SaveTo[self.Name] or self.Default -- Find the index of the current sort. local Index = FindValue(self.RawChoices, Sort) or 1 list[Index] = true end, SaveSelections = function(self, list, pn) - local Env = PROFILEMAN:GetMachineProfile():GetSaved() local Selection = FindSelection( list ) - Env[self.Name] = self.RawChoices[Selection] + self.SaveTo[self.Name] = self.RawChoices[Selection] end }