summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-09 15:04:12 +0100
committerMattes D <github@xoft.cz>2014-03-09 15:04:12 +0100
commit8a715db41f53dbf0ae838e7386d409fd8274e0ae (patch)
tree0ea2410e2775a93f1a97c2ff92a6c6deca9f55f1 /src/Entities/Minecart.cpp
parentUpdated Core (diff)
parentFIxed int in test (diff)
downloadcuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.tar
cuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.tar.gz
cuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.tar.bz2
cuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.tar.lz
cuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.tar.xz
cuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.tar.zst
cuberite-8a715db41f53dbf0ae838e7386d409fd8274e0ae.zip
Diffstat (limited to 'src/Entities/Minecart.cpp')
-rw-r--r--src/Entities/Minecart.cpp4
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;
}