[10157] Fix makefile and make gcc happy.

This commit is contained in:
Lynx3d 2010-07-07 19:30:22 +02:00
parent a32b3063a2
commit 0096bf6ebb
3 changed files with 9 additions and 8 deletions

View file

@ -271,6 +271,7 @@ libmangosgame_a_SOURCES = \
Traveller.h \ Traveller.h \
Unit.cpp \ Unit.cpp \
Unit.h \ Unit.h \
UnitAuraProcHandler.cpp \
UnitEvents.h \ UnitEvents.h \
UpdateData.cpp \ UpdateData.cpp \
UpdateData.h \ UpdateData.h \

View file

@ -4043,7 +4043,7 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
return; return;
// Fill possible dispell list // Fill possible dispell list
std::list <std::pair<SpellAuraHolder* ,uint32>> dispel_list; std::list <std::pair<SpellAuraHolder* ,uint32> > dispel_list;
// Create dispel mask by dispel type // Create dispel mask by dispel type
uint32 dispel_type = m_spellInfo->EffectMiscValue[eff_idx]; uint32 dispel_type = m_spellInfo->EffectMiscValue[eff_idx];
@ -4084,7 +4084,7 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
for (int32 count=0; count < damage && !dispel_list.empty(); ++count) for (int32 count=0; count < damage && !dispel_list.empty(); ++count)
{ {
// Random select buff for dispel // Random select buff for dispel
std::list<std::pair<SpellAuraHolder* ,uint32>>::iterator dispel_itr = dispel_list.begin(); std::list<std::pair<SpellAuraHolder* ,uint32> >::iterator dispel_itr = dispel_list.begin();
std::advance(dispel_itr,urand(0, dispel_list.size()-1)); std::advance(dispel_itr,urand(0, dispel_list.size()-1));
SpellAuraHolder *holder = dispel_itr->first; SpellAuraHolder *holder = dispel_itr->first;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10156" #define REVISION_NR "10157"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__