aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp')
-rw-r--r--NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp b/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
index 51e42335..c2c87da1 100644
--- a/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
+++ b/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
@@ -10,8 +10,8 @@ void ConCommand_ns_script_servertoclientstringcommand(const CCommand& arg)
if (g_pClientSquirrel->sqvm &&
g_pClientSquirrel->setupfunc("NSClientCodeCallback_RecievedServerToClientStringCommand") != SQRESULT_ERROR)
{
- g_pClientSquirrel->pusharg(arg.ArgS());
- g_pClientSquirrel->call(1); // todo: doesn't throw or log errors from within this, probably not great behaviour
+ g_pClientSquirrel->pushstring(g_pClientSquirrel->sqvm2, arg.ArgS());
+ g_pClientSquirrel->call(g_pClientSquirrel->sqvm2, 1); // todo: doesn't throw or log errors from within this, probably not great behaviour
}
}