[6829] Fixed a crash in ScriptsProcess when the source or target's map is looked up while it's not in world.

This commit is contained in:
Wyk3d 2008-11-16 03:27:09 +02:00
parent 766654c85d
commit 3d72b06fcd
2 changed files with 5 additions and 1 deletions

View file

@ -1525,6 +1525,8 @@ void World::ScriptsProcess()
}
}
if(source && !source->IsInWorld()) source = NULL;
Object* target = NULL;
if(step.targetGUID)
@ -1552,6 +1554,8 @@ void World::ScriptsProcess()
}
}
if(target && !target->IsInWorld()) target = NULL;
switch (step.script->command)
{
case SCRIPT_COMMAND_TALK: