diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-08 17:33:38 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-08 17:33:38 +0100 |
commit | 307fad0f257c825c8d433a3e82f2989a8fddd3e0 (patch) | |
tree | df7f820f17893aed860d890b402ca64dd3122b78 /src/Entities/Minecart.cpp | |
parent | Actually Fixed ByteBuffer (diff) | |
download | cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.gz cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.bz2 cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.lz cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.xz cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.zst cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Minecart.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp index f52a7b6d9..7f38aa35a 100644 --- a/src/Entities/Minecart.cpp +++ b/src/Entities/Minecart.cpp @@ -1031,9 +1031,9 @@ cMinecartWithChest::cMinecartWithChest(double a_X, double a_Y, double a_Z) : -void cMinecartWithChest::SetSlot(int a_Idx, const cItem & a_Item) +void cMinecartWithChest::SetSlot(size_t a_Idx, const cItem & a_Item) { - ASSERT((a_Idx >= 0) && (a_Idx < ARRAYCOUNT(m_Items))); + ASSERT(a_Idx < ARRAYCOUNT(m_Items)); m_Items[a_Idx] = a_Item; } |