From 250b8eb652a57dcbdff4af7b6efb9c2554b45798 Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Fri, 26 Nov 2021 00:51:47 +0100 Subject: Fixed Compiler Warnings --- src/Inventory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Inventory.h') diff --git a/src/Inventory.h b/src/Inventory.h index 7221ded00..c54da5975 100644 --- a/src/Inventory.h +++ b/src/Inventory.h @@ -74,7 +74,7 @@ public: Fills existing stacks first and fills the hotbar before the main inventory. Returns the number of items that fit. */ - int AddItem(const cItem & a_ItemStack, bool a_AllowNewStacks = true); + char AddItem(const cItem & a_ItemStack, bool a_AllowNewStacks = true); /** Same as AddItem, but works on an entire list of item stacks. The a_ItemStackList is modified to reflect the leftover items. @@ -82,7 +82,7 @@ public: if a_AllowNewStacks is set to true, empty slots can be used for the rest. Returns the total number of items that fit. */ - int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks); + char AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks); /** Removes the specified item from the inventory, as many as possible, up to a_ItemStack.m_ItemCount. Returns the number of items that were removed. */ @@ -165,7 +165,7 @@ public: If the slot is empty, ignores the call. Returns the new count, or -1 if the slot number is invalid. */ - int ChangeSlotCount(int a_SlotNum, int a_AddToCount); + char ChangeSlotCount(int a_SlotNum, char a_AddToCount); /** Adds the specified damage to the specified item; deletes the item and returns true if the item broke. */ bool DamageItem(int a_SlotNum, short a_Amount); -- cgit v1.2.3