mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10692] Fixed some GCC warnings and code errors.
Thanks to freghar for provide cleaned list of warning messages.
This commit is contained in:
parent
349719e520
commit
10d3d3ce24
33 changed files with 363 additions and 306 deletions
|
|
@ -1641,8 +1641,9 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
m_caster->CastSpell(m_caster, spellID, true, NULL);
|
||||
return;
|
||||
}
|
||||
case EFFECT_INDEX_1:
|
||||
return; // additional data for dummy[0]
|
||||
case EFFECT_INDEX_1: // additional data for dummy[0]
|
||||
case EFFECT_INDEX_2:
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -3807,8 +3808,8 @@ void Spell::EffectOpenLock(SpellEffectIndex eff_idx)
|
|||
{
|
||||
GameObjectInfo const* goInfo = gameObjTarget->GetGOInfo();
|
||||
// Arathi Basin banner opening !
|
||||
if (goInfo->type == GAMEOBJECT_TYPE_BUTTON && goInfo->button.noDamageImmune ||
|
||||
goInfo->type == GAMEOBJECT_TYPE_GOOBER && goInfo->goober.losOK)
|
||||
if ((goInfo->type == GAMEOBJECT_TYPE_BUTTON && goInfo->button.noDamageImmune) ||
|
||||
(goInfo->type == GAMEOBJECT_TYPE_GOOBER && goInfo->goober.losOK))
|
||||
{
|
||||
//CanUseBattleGroundObject() already called in CheckCast()
|
||||
// in battleground check
|
||||
|
|
@ -5831,7 +5832,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
if (const SpellEntry *pSpell = sSpellStore.LookupEntry(m_spellInfo->CalculateSimpleValue(eff_idx)))
|
||||
{
|
||||
// if we used item at least once...
|
||||
if (pTarget->IsTemporarySummon() && pTarget->GetEntry() == pSpell->EffectMiscValue[eff_idx])
|
||||
if (pTarget->IsTemporarySummon() && int32(pTarget->GetEntry()) == pSpell->EffectMiscValue[eff_idx])
|
||||
{
|
||||
TemporarySummon* pSummon = (TemporarySummon*)pTarget;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue