Check if the tag is found.
This commit is contained in:
parent
419778a306
commit
1a361be44f
@ -1877,6 +1877,11 @@ void cWSSAnvil::LoadWolfFromNBT(cEntityList & a_Entities, const cParsedNBT & a_N
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int OwnerIdx = a_NBT.FindChildByName(a_TagIdx, "Owner");
|
int OwnerIdx = a_NBT.FindChildByName(a_TagIdx, "Owner");
|
||||||
|
if (TypeIdx < 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AString OwnerName = a_NBT.GetString(OwnerIdx);
|
AString OwnerName = a_NBT.GetString(OwnerIdx);
|
||||||
if (OwnerName != "")
|
if (OwnerName != "")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user