mirror of
https://github.com/R2Northstar/NorthstarLauncher
synced 2026-08-23 20:26:04 -04:00
Remove unnecessary usage of AsyncCall in ModConCommandCallback_Internal (#904)
use sync call in squirrel conconmands
This commit is contained in:
parent
3c1f236659
commit
86e3d6987b
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ template <ScriptContext context> void ModConCommandCallback_Internal(std::string
|
|||
{
|
||||
if (command.ArgC() == 1)
|
||||
{
|
||||
g_pSquirrel[context]->AsyncCall(name);
|
||||
g_pSquirrel[context]->Call(name.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ template <ScriptContext context> void ModConCommandCallback_Internal(std::string
|
|||
args.reserve(command.ArgC());
|
||||
for (int i = 1; i < command.ArgC(); i++)
|
||||
args.push_back(command.Arg(i));
|
||||
g_pSquirrel[context]->AsyncCall(name, args);
|
||||
g_pSquirrel[context]->Call(name.c_str(), args);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue