From 7a24d7768b7dbf6a0401c71f4e6ff1c6b5f0f4e7 Mon Sep 17 00:00:00 2001 From: darkstalker Date: Sat, 23 Jul 2011 10:24:01 +0300 Subject: [PATCH] [11749] add C++ casts Signed-off-by: Laise --- src/game/SpellAuras.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 62ae37197..57530cad5 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -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(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(spellProto); entry->EffectSpellClassMask[GetEffIndex()].Flags = UI64LIT(0x0000000000200000); } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 924eaea5a..4d97f814b 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11748" + #define REVISION_NR "11749" #endif // __REVISION_NR_H__