Properly initialize variable in WorldObject::PlayDirectSound()

Fixes issue 2838

--HG--
branch : trunk
This commit is contained in:
click
2010-06-28 14:40:57 +02:00
parent 37529a1e9f
commit 988467467c
+1 -1
View File
@@ -3428,7 +3428,7 @@ void Map::ScriptsProcess()
// when script called for item spell casting then target == (unit or GO) and source is player
WorldObject* worldObject;
Player* pTarget;
Player* pTarget = NULL;
pTarget = target->ToPlayer();
if (pTarget)