Core: Warning fixes
This commit is contained in:
@@ -1101,13 +1101,13 @@ bool GameObject::ActivateToQuest(Player* target) const
|
||||
}
|
||||
case GAMEOBJECT_TYPE_GENERIC:
|
||||
{
|
||||
if (GetGOInfo()->generic.questID == -1 || target->GetQuestStatus(GetGOInfo()->generic.questID) == QUEST_STATUS_INCOMPLETE)
|
||||
if (target->GetQuestStatus(GetGOInfo()->generic.questID) == QUEST_STATUS_INCOMPLETE)
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
case GAMEOBJECT_TYPE_GOOBER:
|
||||
{
|
||||
if (GetGOInfo()->goober.questID == -1 || target->GetQuestStatus(GetGOInfo()->goober.questID) == QUEST_STATUS_INCOMPLETE)
|
||||
if (target->GetQuestStatus(GetGOInfo()->goober.questID) == QUEST_STATUS_INCOMPLETE)
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -9459,7 +9459,7 @@ uint32 Player::GetXPRestBonus(uint32 xp)
|
||||
|
||||
SetRestBonus(GetRestBonus() - rested_bonus);
|
||||
|
||||
TC_LOG_DEBUG("entities.player", "GetXPRestBonus: Player %s (%u) gain %u xp (+%u Rested Bonus). Rested points=%f", GetName().c_str(), GetGUID().GetCounter(), xp + rested_bonus, rested_bonus, GetRestBonus());
|
||||
TC_LOG_DEBUG("entities.player", "GetXPRestBonus: Player %s (%s) gain %u xp (+%u Rested Bonus). Rested points=%f", GetGUID().ToString().c_str(), GetName().c_str(), xp + rested_bonus, rested_bonus, GetRestBonus());
|
||||
return rested_bonus;
|
||||
}
|
||||
|
||||
@@ -26023,9 +26023,9 @@ uint8 Player::GetNumOfVoidStorageFreeSlots() const
|
||||
return count;
|
||||
}
|
||||
|
||||
uint8 Player::AddVoidStorageItem(const VoidStorageItem& item)
|
||||
uint8 Player::AddVoidStorageItem(VoidStorageItem const& item)
|
||||
{
|
||||
int8 slot = GetNextVoidStorageFreeSlot();
|
||||
uint8 slot = GetNextVoidStorageFreeSlot();
|
||||
|
||||
if (slot >= VOID_STORAGE_MAX_SLOT)
|
||||
{
|
||||
|
||||
@@ -2617,7 +2617,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void LockVoidStorage() { RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_VOID_UNLOCKED); }
|
||||
uint8 GetNextVoidStorageFreeSlot() const;
|
||||
uint8 GetNumOfVoidStorageFreeSlots() const;
|
||||
uint8 AddVoidStorageItem(const VoidStorageItem& item);
|
||||
uint8 AddVoidStorageItem(VoidStorageItem const& item);
|
||||
void AddVoidStorageItemAtSlot(uint8 slot, const VoidStorageItem& item);
|
||||
void DeleteVoidStorageItem(uint8 slot);
|
||||
bool SwapVoidStorageItem(uint8 oldSlot, uint8 newSlot);
|
||||
|
||||
@@ -5250,7 +5250,7 @@ void ObjectMgr::LoadInstanceEncounters()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (dungeonEncounter->DifficultyID == -1)
|
||||
if (!dungeonEncounter->DifficultyID)
|
||||
{
|
||||
for (uint32 i = 0; i < MAX_DIFFICULTY; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user