aboutsummaryrefslogtreecommitdiff
path: root/primedev/scripts/client/scriptserverbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/scripts/client/scriptserverbrowser.cpp')
-rw-r--r--primedev/scripts/client/scriptserverbrowser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/scripts/client/scriptserverbrowser.cpp b/primedev/scripts/client/scriptserverbrowser.cpp
index a142c3f4..21324535 100644
--- a/primedev/scripts/client/scriptserverbrowser.cpp
+++ b/primedev/scripts/client/scriptserverbrowser.cpp
@@ -26,7 +26,7 @@ ADD_SQFUNC("bool", NSMasterServerConnectionSuccessful, "", "", ScriptContext::UI
ADD_SQFUNC("int", NSGetServerCount, "", "", ScriptContext::UI)
{
- g_pSquirrel<context>->pushinteger(sqvm, g_pMasterServerManager->m_vRemoteServers.size());
+ g_pSquirrel<context>->pushinteger(sqvm, (SQInteger)g_pMasterServerManager->m_vRemoteServers.size());
return SQRESULT_NOTNULL;
}
@@ -146,7 +146,7 @@ ADD_SQFUNC("array<ServerInfo>", NSGetGameServers, "", "", ScriptContext::UI)
g_pSquirrel<context>->pushnewstructinstance(sqvm, 11);
// index
- g_pSquirrel<context>->pushinteger(sqvm, i);
+ g_pSquirrel<context>->pushinteger(sqvm, (SQInteger)i);
g_pSquirrel<context>->sealstructslot(sqvm, 0);
// id