1
0

Check if the tag is found.

This commit is contained in:
STRWarrior 2014-01-30 21:46:45 +01:00
parent 419778a306
commit 1a361be44f

View File

@ -1877,6 +1877,11 @@ void cWSSAnvil::LoadWolfFromNBT(cEntityList & a_Entities, const cParsedNBT & a_N
return;
}
int OwnerIdx = a_NBT.FindChildByName(a_TagIdx, "Owner");
if (TypeIdx < 0)
{
return;
}
AString OwnerName = a_NBT.GetString(OwnerIdx);
if (OwnerName != "")
{