1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Fix an issue in StackStrF type which would not perform the format with just one parameter.

This commit is contained in:
Sandu Liviu Catalin 2016-11-17 16:01:30 +02:00
parent 2449a44c1f
commit 2e0b7b6c7f

View File

@ -1533,7 +1533,7 @@ struct StackStrF
mRes = sq_throwerror(vm, "Missing string or value");
}
// Do we have enough values to call the format function and are we allowed to?
else if ((top - 1) > idx && fmt)
else if (fmt && (top - 1) >= idx)
{
// Pointer to the generated string
SQChar * str = nullptr;