From 6477de8c4f5a1afa62a52359894004a0ecd31801 Mon Sep 17 00:00:00 2001 From: Uleat Date: Mon, 5 May 2014 21:59:21 -0400 Subject: [PATCH] Fix for test... (conn_state != client_state) --- changelog.txt | 1 + zone/effects.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 465ddd10cf..a349f47950 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- == 05/05/2014 == +Uleat: Oops! Wrong state check (conn_state != client_state) Uleat: Test fix to eliminate seemingly random crashes when an AE spell is being used. (Possible access to uninstantiated pointers during client connection process when someone casts a beneficial AE spell within range of a connecting client.) == 04/29/2014 == diff --git a/zone/effects.cpp b/zone/effects.cpp index dd72408f3a..c298974db7 100644 --- a/zone/effects.cpp +++ b/zone/effects.cpp @@ -749,7 +749,7 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_ for (auto it = mob_list.begin(); it != mob_list.end(); ++it) { curmob = it->second; // test to fix possible cause of random zone crashes..external methods accessing client properties before they're initialized - if (curmob->IsClient() && !curmob->CastToClient()->Connected()) + if (curmob->IsClient() && !curmob->CastToClient()->ClientFinishedLoading()) continue; if (curmob == center) //do not affect center continue;