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 if not g_game.isConnectionOk() then
local yesCallback = function() local yesCallback = function()
g_game.forceLogout() g_game.forceLogout()
logoutWindow=nil if logoutWindow then
logoutWindow:destroy()
logoutWindow=nil
end
end end
local noCallback = function() local noCallback = function()
logoutWindow:destroy()
logoutWindow=nil logoutWindow=nil
end end
@ -254,9 +258,11 @@ function tryLogout()
else else
local yesCallback = function() local yesCallback = function()
g_game.safeLogout() g_game.safeLogout()
logoutWindow:destroy()
logoutWindow=nil logoutWindow=nil
end end
local noCallback = function() local noCallback = function()
logoutWindow:destroy()
logoutWindow=nil logoutWindow=nil
end end

View File

@ -415,7 +415,7 @@ std::string Platform::getOSName()
} }
std::string Platform::traceback(const std::string& where) std::string Platform::traceback(const std::string& where, int level, int maxDepth)
{ {
std::stringstream ss; std::stringstream ss;
ss << "\nat:"; ss << "\nat:";