summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-01-30 21:46:45 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-01-30 21:46:45 +0100
commit1a361be44fe2a454734e3ac0e93211e33e566976 (patch)
treedb8320b85aec131c7e52acd4d23e46dacae4cda4
parentFixes #606 (diff)
downloadcuberite-1a361be44fe2a454734e3ac0e93211e33e566976.tar
cuberite-1a361be44fe2a454734e3ac0e93211e33e566976.tar.gz
cuberite-1a361be44fe2a454734e3ac0e93211e33e566976.tar.bz2
cuberite-1a361be44fe2a454734e3ac0e93211e33e566976.tar.lz
cuberite-1a361be44fe2a454734e3ac0e93211e33e566976.tar.xz
cuberite-1a361be44fe2a454734e3ac0e93211e33e566976.tar.zst
cuberite-1a361be44fe2a454734e3ac0e93211e33e566976.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/WSSAnvil.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index ab85cf3e2..1827eff58 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -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 != "")
{