diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-26 21:53:47 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-26 21:53:47 +0200 |
commit | fa66659456f5034e66963a56b67b254fcd77a019 (patch) | |
tree | e2d93adaea5a83a5049ebd0cbdc0923e0f5b8e64 | |
parent | cInventory: Added the ChangeSlotCount() function to the Lua API (diff) | |
download | cuberite-fa66659456f5034e66963a56b67b254fcd77a019.tar cuberite-fa66659456f5034e66963a56b67b254fcd77a019.tar.gz cuberite-fa66659456f5034e66963a56b67b254fcd77a019.tar.bz2 cuberite-fa66659456f5034e66963a56b67b254fcd77a019.tar.lz cuberite-fa66659456f5034e66963a56b67b254fcd77a019.tar.xz cuberite-fa66659456f5034e66963a56b67b254fcd77a019.tar.zst cuberite-fa66659456f5034e66963a56b67b254fcd77a019.zip |
Diffstat (limited to '')
-rw-r--r-- | source/ItemGrid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ItemGrid.cpp b/source/ItemGrid.cpp index e4bcec46e..4e424a668 100644 --- a/source/ItemGrid.cpp +++ b/source/ItemGrid.cpp @@ -345,10 +345,10 @@ int cItemGrid::ChangeSlotCount(int a_SlotNum, int a_AddToCount) {
if ((a_SlotNum < 0) || (a_SlotNum >= m_NumSlots))
{
- LOGWARNING("%s: Invalid slot number %d out of %d slots, ignoring the call, returning empty item",
+ LOGWARNING("%s: Invalid slot number %d out of %d slots, ignoring the call, returning -1",
__FUNCTION__, a_SlotNum, m_NumSlots
);
- return 0;
+ return -1;
}
if (m_Slots[a_SlotNum].IsEmpty())
|