From 63da454de84246fdadc6759cd8297c6df0eb2798 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 28 Jul 2016 00:08:29 +0300 Subject: [PATCH] Fix incorrect range check when converting skin name to identifier. --- source/Misc/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Misc/Player.cpp b/source/Misc/Player.cpp index 3d1c6473..d5ca3f74 100644 --- a/source/Misc/Player.cpp +++ b/source/Misc/Player.cpp @@ -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)