1
0
Fork 0

Fixed cParsedNBT::FindTagByPath().

There was an off-by-one error in the name handling.
This commit is contained in:
madmaxoft 2014-09-20 23:01:42 +02:00
parent 66ef05c765
commit 3676a84916
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ int cParsedNBT::FindTagByPath(int a_Tag, const AString & a_Path) const
{
continue;
}
Tag = FindChildByName(Tag, a_Path.c_str() + Begin, i - Begin - 1);
Tag = FindChildByName(Tag, a_Path.c_str() + Begin, i - Begin);
if (Tag < 0)
{
return -1;