diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-30 21:46:45 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-30 21:46:45 +0100 |
commit | 1a361be44fe2a454734e3ac0e93211e33e566976 (patch) | |
tree | db8320b85aec131c7e52acd4d23e46dacae4cda4 /src | |
parent | Fixes #606 (diff) | |
download | cuberite-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 'src')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 5 |
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 != "") { |