diff options
author | KingPin <none@none> | 2008-10-28 08:10:44 -0500 |
---|---|---|
committer | KingPin <none@none> | 2008-10-28 08:10:44 -0500 |
commit | 3ea64f75812b7cdf81d9bc404ee9f50f16054b6c (patch) | |
tree | f94744dca627c05971268a19f5eb381eacfd6653 /src/game/SpellEffects.cpp | |
parent | f724227f2478f8755ad22af9be6e0367d109fdd0 (diff) |
[svn] * Prevent crash at access to deleted social data for player. Remove social data at logout instead - source mangos
* Fixed subcommands list output at console. - source mangos
* Rename scripts update.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 4783724d025..90dc40c89fc 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4898,7 +4898,7 @@ void Spell::EffectDuel(uint32 i) Player *target = (Player*)unitTarget; // caster or target already have requested duel - if( caster->duel || target->duel || target->GetSocial()->HasIgnore(caster->GetGUIDLow()) ) + if( caster->duel || target->duel || !target->GetSocial() || target->GetSocial()->HasIgnore(caster->GetGUIDLow()) ) return; // Players can only fight a duel with each other outside (=not inside dungeons and not in capital cities) |