summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-27 22:50:18 +0100
committerMattes D <github@xoft.cz>2014-11-27 22:50:18 +0100
commit12ad2a07c0658210e46652101740e101a32bea20 (patch)
tree0e9792c2282c26226123c6826caefd49044ba5fa /src
parentRidgedNoise: Replaced fabs with std::abs(). (diff)
downloadcuberite-12ad2a07c0658210e46652101740e101a32bea20.tar
cuberite-12ad2a07c0658210e46652101740e101a32bea20.tar.gz
cuberite-12ad2a07c0658210e46652101740e101a32bea20.tar.bz2
cuberite-12ad2a07c0658210e46652101740e101a32bea20.tar.lz
cuberite-12ad2a07c0658210e46652101740e101a32bea20.tar.xz
cuberite-12ad2a07c0658210e46652101740e101a32bea20.tar.zst
cuberite-12ad2a07c0658210e46652101740e101a32bea20.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Minecart.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h
index 40e22c641..f7d0d5dda 100644
--- a/src/Entities/Minecart.h
+++ b/src/Entities/Minecart.h
@@ -128,7 +128,7 @@ public:
};
const cItem & GetSlot(int a_Idx) const { return m_Contents.GetSlot(a_Idx); }
- void SetSlot(size_t a_Idx, const cItem & a_Item) { m_Contents.SetSlot(a_Idx, a_Item); }
+ void SetSlot(size_t a_Idx, const cItem & a_Item) { m_Contents.SetSlot(static_cast<int>(a_Idx), a_Item); }
protected:
cItemGrid m_Contents;