diff Localisation.lua @ 61:adba10dfa908

Implemented the "Defaults" button for the key bindings options subpage.
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Fri, 03 May 2013 23:24:58 +0000
parents cec87b651c10
children c22f1accec43
line wrap: on
line diff
--- a/Localisation.lua	Fri May 03 23:24:53 2013 +0000
+++ b/Localisation.lua	Fri May 03 23:24:58 2013 +0000
@@ -437,7 +437,11 @@
 CyborgMMO_StringTable = StringTables[locale] or StringTables[default_locale]
 
 -- key bindings are saved and will be replaced by SavedVariables
-CyborgMMO_ProfileKeyBindings = DefaultKeyBindings[locale] or DefaultKeyBindings[default_locale]
+CyborgMMO_DefaultKeyBindings = DefaultKeyBindings[locale] or DefaultKeyBindings[default_locale]
+CyborgMMO_ProfileKeyBindings = {}
+for k,v in pairs(CyborgMMO_DefaultKeyBindings) do
+	CyborgMMO_ProfileKeyBindings[k] = v
+end
 
 if locale ~= default_locale then
 	setmetatable(CyborgMMO_StringTable, {__index=StringTables[default_locale]})