diff options
-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())
|