From 7b2443c1f9f3904e52e6ec4c4eb1daf0830542e7 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 22 Apr 2009 18:01:35 -0500 Subject: [PATCH] [7699] Avoid implicit convertion enum constant value to 'uint32 const&' in templated code. Author: VladimirMangos This triggering wrong code generation in release mode for VS2003/VS2005. --HG-- branch : trunk --- src/game/Spell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.h b/src/game/Spell.h index cc4fed8c32..4cd42a1d59 100644 --- a/src/game/Spell.h +++ b/src/game/Spell.h @@ -642,14 +642,14 @@ namespace Trinity { std::list *i_data; Spell &i_spell; - const uint32& i_push_type; + SpellNotifyPushType i_push_type; float i_radius, i_radiusSq; SpellTargets i_TargetType; Unit* i_source; uint32 i_entry; float i_x, i_y, i_z; - SpellNotifierCreatureAndPlayer(Spell &spell, std::list &data, float radius, const uint32 &type, + SpellNotifierCreatureAndPlayer(Spell &spell, std::list &data, float radius, SpellNotifyPushType type, SpellTargets TargetType = SPELL_TARGETS_ENEMY, uint32 entry = 0, float x = 0, float y = 0, float z = 0) : i_data(&data), i_spell(spell), i_push_type(type), i_radius(radius), i_radiusSq(radius*radius) , i_TargetType(TargetType), i_entry(entry), i_x(x), i_y(y), i_z(z)