mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Fixed warnings
This commit is contained in:
@@ -443,11 +443,11 @@ void AuctionHouseMgr::PendingAuctionProcess(Player* player)
|
||||
totaldeposit = GetAuctionDeposit(itr->auctionHouseEntry, itr->etime, item, totalItems);
|
||||
|
||||
uint32 depositremain = totaldeposit;
|
||||
for (auto itr = thisAH->begin(); itr != thisAH->end(); ++itr)
|
||||
for (auto itrAH = thisAH->begin(); itrAH != thisAH->end(); ++itrAH)
|
||||
{
|
||||
AuctionEntry* AH = (*itr);
|
||||
AuctionEntry* AH = (*itrAH);
|
||||
|
||||
if (next(itr) == thisAH->end())
|
||||
if (next(itrAH) == thisAH->end())
|
||||
AH->deposit = depositremain;
|
||||
else
|
||||
{
|
||||
|
||||
@@ -446,7 +446,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) const
|
||||
if (Unit* unit = object->ToUnit())
|
||||
{
|
||||
if (ConditionValue1 == 0)
|
||||
condMeets = (unit->GetStandState() == ConditionValue2);
|
||||
condMeets = (unit->GetStandState() == UnitStandStateType(ConditionValue2));
|
||||
else if (ConditionValue2 == 0)
|
||||
condMeets = unit->IsStandState();
|
||||
else if (ConditionValue2 == 1)
|
||||
|
||||
@@ -198,8 +198,8 @@ class npc_pet_mage_mirror_image : public CreatureScript
|
||||
if (!target || me->GetVictim() != target)
|
||||
{
|
||||
Unit* ownerTarget = nullptr;
|
||||
if (Player* owner = me->GetCharmerOrOwner()->ToPlayer())
|
||||
ownerTarget = owner->GetSelectedUnit();
|
||||
if (Player* ownerPlayer = me->GetCharmerOrOwner()->ToPlayer())
|
||||
ownerTarget = ownerPlayer->GetSelectedUnit();
|
||||
|
||||
// recognize which victim will be choosen
|
||||
if (ownerTarget && ownerTarget->GetTypeId() == TYPEID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user