1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-01-20 22:24:38 +01:00

Make sure that the free variable containing the pointer of the registered native closures is taken into account when registering functions with formatting support that take no extra parameters other than the formatting string and trailing variable arguments.

This commit is contained in:
Sandu Liviu Catalin
2017-06-17 22:41:03 +03:00
parent 30fd6b274b
commit bb7a6881c6
3 changed files with 20 additions and 10 deletions

View File

@@ -2403,7 +2403,7 @@ public:
SQTRY()
const StackStrF fmt(vm, 2, true);
const StackStrF fmt(vm, 2, true, sq_gettop(vm) == 2);
// Validate the format
if (SQ_FAILED(fmt.mRes)) {
return fmt.mRes;
@@ -2822,7 +2822,7 @@ public:
SQTRY()
const StackStrF fmt(vm, 2, true);
const StackStrF fmt(vm, 2, true, sq_gettop(vm) == 2);
// Validate the format
if (SQ_FAILED(fmt.mRes)) {
return fmt.mRes;
@@ -3241,7 +3241,7 @@ public:
SQTRY()
const StackStrF fmt(vm, 2, true);
const StackStrF fmt(vm, 2, true, sq_gettop(vm) == 2);
// Validate the format
if (SQ_FAILED(fmt.mRes)) {
return fmt.mRes;