mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[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:
parent
766654c85d
commit
3d72b06fcd
2 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue