Fixed warning

This commit is contained in:
joschiwald
2017-03-05 02:58:35 +01:00
parent c170813b96
commit 2ea8b3477c
2 changed files with 2 additions and 2 deletions

View File

@@ -402,7 +402,7 @@ bool LootItem::AllowedForPlayer(Player const* player) const
return false;
// Don't show bind-when-picked-up unique items if player already has the maximum allowed quantity.
if (pProto->GetBonding() == BIND_ON_ACQUIRE && pProto->GetMaxCount() && int32(player->GetItemCount(itemid, true)) >= pProto->GetMaxCount())
if (pProto->GetBonding() == BIND_ON_ACQUIRE && pProto->GetMaxCount() && player->GetItemCount(itemid, true) >= pProto->GetMaxCount())
return false;
return true;

View File

@@ -5219,7 +5219,7 @@ void Spell::EffectDiscoverTaxi(SpellEffIndex /*effIndex*/)
unitTarget->ToPlayer()->GetSession()->SendDiscoverNewTaxiNode(nodeid);
}
void Spell::EffectTitanGrip(SpellEffIndex effIndex)
void Spell::EffectTitanGrip(SpellEffIndex /*effIndex*/)
{
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT)
return;