Core: Kill off some warnings
--HG-- branch : trunk
This commit is contained in:
@@ -811,10 +811,10 @@ class DamageInfo
|
||||
private:
|
||||
Unit * const m_attacker;
|
||||
Unit * const m_victim;
|
||||
DamageEffectType const m_damageType;
|
||||
uint32 m_damage;
|
||||
SpellEntry const * const m_spellInfo;
|
||||
SpellSchoolMask const m_schoolMask;
|
||||
uint32 m_damage;
|
||||
DamageEffectType const m_damageType;
|
||||
uint32 m_absorb;
|
||||
uint32 m_resist;
|
||||
uint32 m_block;
|
||||
@@ -851,9 +851,9 @@ public:
|
||||
}
|
||||
Unit * GetAttacker() const { return m_attacker; };
|
||||
Unit * GetVictim() const { return m_victim; };
|
||||
DamageEffectType const GetDamageType() const { return m_damageType; };
|
||||
DamageEffectType GetDamageType() const { return m_damageType; };
|
||||
SpellEntry const * GetSpellInfo() const { return m_spellInfo; };
|
||||
SpellSchoolMask const GetSchoolMask() const { return m_schoolMask; };
|
||||
SpellSchoolMask GetSchoolMask() const { return m_schoolMask; };
|
||||
uint32 GetDamage() const { return m_damage; };
|
||||
uint32 GetAbsorb() const { return m_absorb; };
|
||||
uint32 GetResist() const { return m_resist; };
|
||||
|
||||
@@ -280,7 +280,7 @@ bool Vehicle::AddPassenger(Unit *unit, int8 seatId, bool byAura)
|
||||
if (seatId < 0) // no specific seat requirement
|
||||
{
|
||||
for (seat = m_Seats.begin(); seat != m_Seats.end(); ++seat)
|
||||
if (!seat->second.passenger && ((!byAura && seat->second.seatInfo->IsUsableByPlayer() || (byAura && seat->second.seatInfo->IsUsableByAura()))))
|
||||
if (!seat->second.passenger && ((!(byAura && seat->second.seatInfo->IsUsableByPlayer()) || (byAura && seat->second.seatInfo->IsUsableByAura()))))
|
||||
break;
|
||||
|
||||
if (seat == m_Seats.end()) // no available seat
|
||||
|
||||
Reference in New Issue
Block a user