Remove unnecessary usage of AsyncCall in ModConCommandCallback_Internal (#904)

use sync call in squirrel conconmands
This commit is contained in:
cat_or_not 2026-03-24 13:53:59 -04:00 committed by GitHub
parent 3c1f236659
commit 86e3d6987b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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