Rename GetEquipmentSlotCount() into GetEquipmentSize()

coverity_scan^2
David Cernat 8 years ago
parent 977e93288e
commit 356143faed

@ -41,7 +41,7 @@ void ItemFunctions::UnequipItem(unsigned short pid, unsigned short slot) noexcep
//ItemFunctions::EquipItem(pid, slot, "", 0);
}
int ItemFunctions::GetEquipmentSlotCount() noexcept
int ItemFunctions::GetEquipmentSize() noexcept
{
return MWWorld::InventoryStore::Slots;
}

@ -12,7 +12,7 @@
\
{"EquipItem", ItemFunctions::EquipItem},\
{"UnequipItem", ItemFunctions::UnequipItem},\
{"GetEquipmentSlotCount", ItemFunctions::GetEquipmentSlotCount},\
{"GetEquipmentSize", ItemFunctions::GetEquipmentSize},\
{"HasItemEquipped", ItemFunctions::HasItemEquipped},\
\
{"GetItemSlot", ItemFunctions::GetItemSlot},\
@ -32,7 +32,7 @@ public:
static void EquipItem(unsigned short pid, unsigned short slot, const char* itemName, unsigned int count, int health) noexcept;
static void UnequipItem(unsigned short pid, unsigned short slot) noexcept;
static int GetEquipmentSlotCount() noexcept;
static int GetEquipmentSize() noexcept;
static bool HasItemEquipped(unsigned short pid, const char* itemName);
static const char *GetItemSlot(unsigned short pid, unsigned short slot) noexcept;

Loading…
Cancel
Save