1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-20 17:17:13 +02:00

Don't make the temporary buffer static.

It is pointless.
This commit is contained in:
Sandu Liviu Catalin
2020-09-03 18:26:24 +03:00
parent 25fb30140c
commit db6cf1cdde
10 changed files with 24 additions and 24 deletions

View File

@ -530,8 +530,6 @@ const Vector2i & Vector2i::Get(StackStrF & str)
// ------------------------------------------------------------------------------------------------
const Vector2i & Vector2i::GetEx(SQChar delim, StackStrF & str)
{
// The format specifications that will be used to scan the string
static SQChar fs[] = _SC(" %d , %d ");
static Vector2i vec;
// Clear previous values, if any
vec.Clear();
@ -540,6 +538,8 @@ const Vector2i & Vector2i::GetEx(SQChar delim, StackStrF & str)
{
return vec; // Return the value as is!
}
// The format specifications that will be used to scan the string
SQChar fs[] = _SC(" %d , %d ");
// Assign the specified delimiter
fs[4] = delim;
// Attempt to extract the component values from the specified string