Fixed bug in property reflection code. If array had 2 or more digit index, would truncate to 1 digit.

This commit is contained in:
Filip Maj 2016-01-12 01:20:09 -05:00
parent e47904dc30
commit 2bf532a6db
2 changed files with 11 additions and 13 deletions

View file

@ -110,7 +110,7 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
if (split[i].LastIndexOf(']') - split[i].IndexOf('[') <= 0)
return false;
arrayIndex = Convert.ToInt32(split[i].Substring(split[i].IndexOf('[') + 1, split[i].Length - split[i].LastIndexOf(']')));
arrayIndex = Convert.ToInt32(split[i].Substring(split[i].IndexOf('[') + 1, split[i].LastIndexOf(']') - split[i].LastIndexOf('[')-1));
split[i] = split[i].Substring(0, split[i].IndexOf('['));
}