Type warning fixes.
This commit is contained in:
parent
8f20c359cd
commit
bf16c5ed92
@ -106,7 +106,7 @@ int cInventory::AddItem(const cItem & a_Item, bool a_AllowNewStacks, bool a_tryT
|
||||
// When the item is a armor, try to set it directly to the armor slot.
|
||||
if (ItemCategory::IsArmor(a_Item.m_ItemType))
|
||||
{
|
||||
for (size_t i = 0; i < (size_t)m_ArmorSlots.GetNumSlots(); i++)
|
||||
for (int i = 0; i < m_ArmorSlots.GetNumSlots(); i++)
|
||||
{
|
||||
if (m_ArmorSlots.GetSlot(i).IsEmpty() && cSlotAreaArmor::CanPlaceArmorInSlot(i, a_Item))
|
||||
{
|
||||
|
@ -675,7 +675,7 @@ void cMojangAPI::CacheNamesToUUIDs(const AStringVector & a_PlayerNames)
|
||||
// Also cache the UUIDToName:
|
||||
{
|
||||
cCSLock Lock(m_CSUUIDToName);
|
||||
for (size_t idx = 0; idx < JsonCount; ++idx)
|
||||
for (Json::Value::UInt idx = 0; idx < JsonCount; ++idx)
|
||||
{
|
||||
Json::Value & Val = root[idx];
|
||||
AString JsonName = Val.get("name", "").asString();
|
||||
|
Loading…
Reference in New Issue
Block a user