Fix compile error for win32

This commit is contained in:
Eduardo Bart
2013-03-13 21:18:17 -03:00
parent e9e4dcd71b
commit 4bdd1e79fd
2 changed files with 8 additions and 2 deletions

View File

@@ -241,9 +241,13 @@ function tryLogout()
if not g_game.isConnectionOk() then
local yesCallback = function()
g_game.forceLogout()
logoutWindow=nil
if logoutWindow then
logoutWindow:destroy()
logoutWindow=nil
end
end
local noCallback = function()
logoutWindow:destroy()
logoutWindow=nil
end
@@ -254,9 +258,11 @@ function tryLogout()
else
local yesCallback = function()
g_game.safeLogout()
logoutWindow:destroy()
logoutWindow=nil
end
local noCallback = function()
logoutWindow:destroy()
logoutWindow=nil
end