[7699] Avoid implicit convertion enum constant value to 'uint32 const&' in templated code.

This triggering wrong code generation in release mode for VS2003/VS2005.
This commit is contained in:
VladimirMangos 2009-04-22 21:54:24 +04:00
parent 07310ff6c1
commit 898acd1248
2 changed files with 3 additions and 3 deletions

View file

@ -630,12 +630,12 @@ namespace MaNGOS
{
std::list<Unit*> *i_data;
Spell &i_spell;
const uint32& i_push_type;
SpellNotifyPushType i_push_type;
float i_radius;
SpellTargets i_TargetType;
Unit* i_originalCaster;
SpellNotifierCreatureAndPlayer(Spell &spell, std::list<Unit*> &data, float radius, const uint32 &type,
SpellNotifierCreatureAndPlayer(Spell &spell, std::list<Unit*> &data, float radius, SpellNotifyPushType type,
SpellTargets TargetType = SPELL_TARGETS_NOT_FRIENDLY)
: i_data(&data), i_spell(spell), i_push_type(type), i_radius(radius), i_TargetType(TargetType)
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7698"
#define REVISION_NR "7699"
#endif // __REVISION_NR_H__