mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-07 06:07:11 +02:00
Don't guess the string size when that information is already available.
This commit is contained in:
1 parent
e6b80a40d2
commit
69bc0ba5c2
1 file changed
+1
-1
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
string overloadName = SqOverloadName::Get(funcName, argCount);
|
||||
|
||||
sq_pushstring(vm, overloadName.c_str(), -1);
|
||||
sq_pushstring(vm, overloadName.c_str(), static_cast<SQInteger>(overloadName.size()));
|
||||
|
||||
#if !defined (SCRAT_NO_ERROR_CHECKING)
|
||||
if (SQ_FAILED(sq_get(vm, 1))) { // Lookup the proper overload
|
||||
|
||||
Reference in new issue
Block a user