From 3ea64f75812b7cdf81d9bc404ee9f50f16054b6c Mon Sep 17 00:00:00 2001 From: KingPin Date: Tue, 28 Oct 2008 08:10:44 -0500 Subject: [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 --- src/game/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/SpellEffects.cpp') 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) -- cgit v1.2.3