summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/FireworksSerializer.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-09 19:33:22 +0200
committerMattes D <github@xoft.cz>2014-05-09 19:33:22 +0200
commit5b54dc3eacca565531446d9c8cc9be7be084670c (patch)
tree528508f261c4d6e9bf27b728c292480d1588c6cb /src/WorldStorage/FireworksSerializer.cpp
parentWorld pre-generation distance is settable in world.ini. (diff)
downloadcuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.gz
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.bz2
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.lz
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.xz
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.zst
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.zip
Diffstat (limited to 'src/WorldStorage/FireworksSerializer.cpp')
-rw-r--r--src/WorldStorage/FireworksSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/FireworksSerializer.cpp b/src/WorldStorage/FireworksSerializer.cpp
index e0cd69634..263c77a1c 100644
--- a/src/WorldStorage/FireworksSerializer.cpp
+++ b/src/WorldStorage/FireworksSerializer.cpp
@@ -96,7 +96,7 @@ void cFireworkItem::ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNB
if (ExplosionName == "Colors")
{
// Divide by four as data length returned in bytes
- int DataLength = a_NBT.GetDataLength(explosiontag);
+ size_t DataLength = a_NBT.GetDataLength(explosiontag);
// round to the next highest multiple of four
DataLength -= DataLength % 4;
if (DataLength == 0)
@@ -112,7 +112,7 @@ void cFireworkItem::ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNB
}
else if (ExplosionName == "FadeColors")
{
- int DataLength = a_NBT.GetDataLength(explosiontag) / 4;
+ size_t DataLength = a_NBT.GetDataLength(explosiontag) / 4;
// round to the next highest multiple of four
DataLength -= DataLength % 4;
if (DataLength == 0)