Properly initialize variable in WorldObject::PlayDirectSound()
Fixes issue 2838 --HG-- branch : trunk
This commit is contained in:
@@ -3428,7 +3428,7 @@ void Map::ScriptsProcess()
|
|||||||
|
|
||||||
// when script called for item spell casting then target == (unit or GO) and source is player
|
// when script called for item spell casting then target == (unit or GO) and source is player
|
||||||
WorldObject* worldObject;
|
WorldObject* worldObject;
|
||||||
Player* pTarget;
|
Player* pTarget = NULL;
|
||||||
|
|
||||||
pTarget = target->ToPlayer();
|
pTarget = target->ToPlayer();
|
||||||
if (pTarget)
|
if (pTarget)
|
||||||
|
|||||||
Reference in New Issue
Block a user