mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10157] Fix makefile and make gcc happy.
This commit is contained in:
parent
a32b3063a2
commit
0096bf6ebb
3 changed files with 9 additions and 8 deletions
|
|
@ -271,6 +271,7 @@ libmangosgame_a_SOURCES = \
|
|||
Traveller.h \
|
||||
Unit.cpp \
|
||||
Unit.h \
|
||||
UnitAuraProcHandler.cpp \
|
||||
UnitEvents.h \
|
||||
UpdateData.cpp \
|
||||
UpdateData.h \
|
||||
|
|
|
|||
|
|
@ -4043,7 +4043,7 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
|
|||
return;
|
||||
|
||||
// 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
|
||||
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)
|
||||
{
|
||||
// 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));
|
||||
|
||||
SpellAuraHolder *holder = dispel_itr->first;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10156"
|
||||
#define REVISION_NR "10157"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue