[11749] add C++ casts

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
darkstalker 2011-07-23 10:24:01 +03:00 committed by Laise
parent e178c79d51
commit 7a24d7768b
2 changed files with 3 additions and 3 deletions

View file

@ -1030,7 +1030,7 @@ void Aura::HandleAddModifier(bool apply, bool Real)
{
// Corruption and Unstable Affliction
// TODO: drop when override will be possible
SpellEntry *entry = (SpellEntry*)(&(*spellProto));
SpellEntry *entry = const_cast<SpellEntry*>(spellProto);
entry->EffectSpellClassMask[GetEffIndex()].Flags = UI64LIT(0x0000010000000002);
}
// Improved Flametongue Weapon, overwrite wrong data, maybe time re-add table
@ -1038,7 +1038,7 @@ void Aura::HandleAddModifier(bool apply, bool Real)
{
// Flametongue Weapon (Passive)
// TODO: drop when override will be possible
SpellEntry *entry = (SpellEntry*)(&(*spellProto));
SpellEntry *entry = const_cast<SpellEntry*>(spellProto);
entry->EffectSpellClassMask[GetEffIndex()].Flags = UI64LIT(0x0000000000200000);
}
}