Should resolve #289 (please test and give feedback)

This commit is contained in:
BeniS
2013-02-28 10:22:46 +13:00
parent 864ac3fdd9
commit ccbe491e3c
2 changed files with 51 additions and 40 deletions

View File

@@ -193,12 +193,18 @@ function save()
local hotkeys = hotkeySettings
if perServer then
if not hotkeys[G.host] then
hotkeys[G.host] = {}
end
hotkeys = hotkeys[G.host]
end
if perCharacter then
hotkeys[g_game.getCharacterName()] = {}
hotkeys = hotkeys[g_game.getCharacterName()]
local char = g_game.getCharacterName()
if not hotkeys[char] then
hotkeys[hotkeys[char]] = {}
end
hotkeys = hotkeys[char]
end
table.clear(hotkeys)