*Fix build.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-06 08:42:43 +02:00
parent c99b741517
commit 6f9f1a13f5
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -275,7 +275,7 @@ std::ostringstream& operator<< (std::ostringstream& ss, PlayerTaxi const& taxi)
UpdateMask Player::updateVisualBits;
Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputationMgr(this) , m_spellModTakingSpell(NULL)
Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputationMgr(this)
{
m_speakTime = 0;
m_speakCount = 0;
@@ -291,6 +291,8 @@ Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputa
m_ExtraFlags = 0;
m_spellModTakingSpell = NULL;
// players always accept
if(GetSession()->GetSecurity() == SEC_PLAYER)
SetAcceptWhispers(true);
@@ -17036,7 +17038,7 @@ void Player::AddSpellMod(SpellModifier* mod, bool apply)
}
// Restore spellmods in case of failed cast
void Player::RestoreSpellMods(Spell const* spell)
void Player::RestoreSpellMods(Spell * spell)
{
if (!spell || spell->m_appliedMods.empty())
return;
+1 -1
View File
@@ -104,7 +104,7 @@ struct SpellModifier
int32 value;
flag96 mask;
uint32 spellId;
Spell const* lastAffected;
Aura *const ownerAura;
};
typedef UNORDERED_MAP<uint32, PlayerSpell*> PlayerSpellMap;
+1 -1
View File
@@ -672,7 +672,7 @@ void Aura::Update(uint32 diff)
// used for example when triggered spell of spell:10 is modded
Spell * modSpell = NULL;
Unit* caster = NULL;
if (IS_PLAYER_GUID(GetCasterGUID())
if (IS_PLAYER_GUID(GetCasterGUID()))
{
caster = GetCaster();
modSpell = ((Player*)caster)->FindCurrentSpellBySpellId(GetId());