1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-20 19:57:12 +01:00

Fix incorrect range check when converting skin name to identifier.

This commit is contained in:
Sandu Liviu Catalin 2016-07-28 00:08:29 +03:00
parent 0559e224ad
commit 63da454de8

View File

@ -82,7 +82,7 @@ Int32 GetSkinID(CCStr name)
b = str[1];
c = str[2];
}
else if (len >= 52)
else if (len >= 2)
b = str[1];
// Search for a pattern in the name
switch (a)