mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Fix an issue in StackStrF type which would not perform the format with just one parameter.
This commit is contained in:
parent
2449a44c1f
commit
2e0b7b6c7f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user