summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-09 20:32:27 +0200
committerMattes D <github@xoft.cz>2014-05-09 20:32:27 +0200
commita2e18f0e01edf5a8e61ac0de1356b98d6a5af1de (patch)
tree7f14af4ec0eaf7fbcc269e10cfc803a22794c3dc /src
parentFixed message formatting. (diff)
downloadcuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.tar
cuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.tar.gz
cuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.tar.bz2
cuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.tar.lz
cuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.tar.xz
cuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.tar.zst
cuberite-a2e18f0e01edf5a8e61ac0de1356b98d6a5af1de.zip
Diffstat (limited to 'src')
-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 263c77a1c..181cfde0d 100644
--- a/src/WorldStorage/FireworksSerializer.cpp
+++ b/src/WorldStorage/FireworksSerializer.cpp
@@ -105,7 +105,7 @@ void cFireworkItem::ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNB
}
const char * ColourData = (a_NBT.GetData(explosiontag));
- for (int i = 0; i < DataLength; i += 4 /* Size of network int*/)
+ for (size_t i = 0; i < DataLength; i += 4)
{
a_FireworkItem.m_Colours.push_back(GetBEInt(ColourData + i));
}
@@ -121,7 +121,7 @@ void cFireworkItem::ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNB
}
const char * FadeColourData = (a_NBT.GetData(explosiontag));
- for (int i = 0; i < DataLength; i += 4 /* Size of network int*/)
+ for (size_t i = 0; i < DataLength; i += 4)
{
a_FireworkItem.m_FadeColours.push_back(GetBEInt(FadeColourData + i));
}