summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-29 01:01:10 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-29 01:01:10 +0200
commit20b32fc44e69ef317dea7536eb8e31bc3fe6c562 (patch)
tree6fac0b81db85d9947db2fd2830107df633dbe6a3
parentSave IsSheared from Sheep. (diff)
downloadcuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar
cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.gz
cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.bz2
cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.lz
cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.xz
cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.zst
cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/WSSAnvil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 5c209c7fa..b22454cdf 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -2093,7 +2093,7 @@ void cWSSAnvil::LoadSheepFromNBT(cEntityList & a_Entities, const cParsedNBT & a_
int ShearedIdx = a_NBT.FindChildByName(a_TagIdx, "Sheared");
if (ShearedIdx > 0)
{
- Monster.get()->SetSheared((bool)a_NBT.GetByte(ShearedIdx));
+ Monster->SetSheared(a_NBT.GetByte(ShearedIdx) != 0);
}
a_Entities.push_back(Monster.release());