Minecart.h: Fixed integral conversion warning.
This commit is contained in:
parent
2cff4e8c83
commit
12ad2a07c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user