Fix compile error for win32
This commit is contained in:
parent
e9e4dcd71b
commit
4bdd1e79fd
|
@ -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()
|
||||||
|
if logoutWindow then
|
||||||
|
logoutWindow:destroy()
|
||||||
logoutWindow=nil
|
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
|
||||||
|
|
||||||
|
|
|
@ -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:";
|
||||||
|
|
Loading…
Reference in New Issue