Initialize a pointer with NULL value to prevent possible crashes.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-06-30 14:48:38 +02:00
parent d405f3fca5
commit 1740bace3a
+1 -1
View File
@@ -3597,7 +3597,7 @@ void Map::ScriptsProcess()
}
// bitmask: 0/1=anyone/target, 0/2=with distance dependent
Player* pTarget;
Player* pTarget = NULL;
if (step.script->datalong2 & 1)
{
if (!target)