mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +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");
|
mRes = sq_throwerror(vm, "Missing string or value");
|
||||||
}
|
}
|
||||||
// Do we have enough values to call the format function and are we allowed to?
|
// 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
|
// Pointer to the generated string
|
||||||
SQChar * str = nullptr;
|
SQChar * str = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user