mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11749] add C++ casts
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
e178c79d51
commit
7a24d7768b
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue