aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/NbtIo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/NbtIo.cpp')
-rw-r--r--Minecraft.World/NbtIo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.World/NbtIo.cpp b/Minecraft.World/NbtIo.cpp
index b6c63277..7e566114 100644
--- a/Minecraft.World/NbtIo.cpp
+++ b/Minecraft.World/NbtIo.cpp
@@ -52,11 +52,11 @@ CompoundTag *NbtIo::read(DataInput *dis)
{
Tag *tag = Tag::readNamedTag(dis);
- if( tag->getId() == Tag::TAG_Compound ) return (CompoundTag *)tag;
+ if( tag->getId() == Tag::TAG_Compound ) return static_cast<CompoundTag *>(tag);
- if(tag!=NULL) delete tag;
+ if(tag!=nullptr) delete tag;
// Root tag must be a named compound tag
- return NULL;
+ return nullptr;
}
void NbtIo::write(CompoundTag *tag, DataOutput *dos)