summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-01-31 16:27:21 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-01-31 16:27:21 +0100
commitc7e4ade7c357ce152319bf01527410d8323b929d (patch)
treef769626d85b6c449716d7f15e57a66c8005a6cbf /src
parentFixed bad variable. (diff)
downloadcuberite-c7e4ade7c357ce152319bf01527410d8323b929d.tar
cuberite-c7e4ade7c357ce152319bf01527410d8323b929d.tar.gz
cuberite-c7e4ade7c357ce152319bf01527410d8323b929d.tar.bz2
cuberite-c7e4ade7c357ce152319bf01527410d8323b929d.tar.lz
cuberite-c7e4ade7c357ce152319bf01527410d8323b929d.tar.xz
cuberite-c7e4ade7c357ce152319bf01527410d8323b929d.tar.zst
cuberite-c7e4ade7c357ce152319bf01527410d8323b929d.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/WSSAnvil.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index e581c433e..0df97d759 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -1879,16 +1879,13 @@ void cWSSAnvil::LoadWolfFromNBT(cEntityList & a_Entities, const cParsedNBT & a_N
int OwnerIdx = a_NBT.FindChildByName(a_TagIdx, "Owner");
if (OwnerIdx < 0)
{
- return;
- }
-
- AString OwnerName = a_NBT.GetString(OwnerIdx);
- if (OwnerName != "")
- {
- Monster->SetOwner(OwnerName);
- Monster->SetIsTame(true);
+ AString OwnerName = a_NBT.GetString(OwnerIdx);
+ if (OwnerName != "")
+ {
+ Monster->SetOwner(OwnerName);
+ Monster->SetIsTame(true);
+ }
}
-
a_Entities.push_back(Monster.release());
}