mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
Keep g_settings as a 'static' variable rather than a direct object.
This commit is contained in:
@@ -55,7 +55,7 @@ function UIMinimap:disableAutoWalk()
|
||||
end
|
||||
|
||||
function UIMinimap:load()
|
||||
local settings = g_settings:getNode('Minimap')
|
||||
local settings = g_settings.getNode('Minimap')
|
||||
if settings then
|
||||
if settings.flags then
|
||||
for _,flag in pairs(settings.flags) do
|
||||
@@ -76,7 +76,7 @@ function UIMinimap:save()
|
||||
})
|
||||
end
|
||||
settings.zoom = self:getZoom()
|
||||
g_settings:setNode('Minimap', settings)
|
||||
g_settings.setNode('Minimap', settings)
|
||||
end
|
||||
|
||||
local function onFlagMouseRelease(widget, pos, button)
|
||||
|
Reference in New Issue
Block a user