Core/SmartAI: Initialized player pointer before use

Should fix #3757
This commit is contained in:
kaelima
2011-10-31 13:33:57 +01:00
parent e158a5e14e
commit bfdceaf07e

View File

@@ -140,7 +140,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
ObjectList* targets = GetTargets(e, unit);
Creature* talker = me;
Player* targetPlayer;
Player* targetPlayer = NULL;
if (targets)
{
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)