Core/Misc: Use std::chrono overload of Creature::DespawnOrUnsummon

(cherry picked from commit c39eb9b504)
This commit is contained in:
Carbenium
2020-07-26 01:01:30 +02:00
committed by Shauren
parent 58e1c091a2
commit b8a3ab880f
4 changed files with 4 additions and 4 deletions

View File

@@ -742,7 +742,7 @@ void Map::ScriptsProcess()
case SCRIPT_COMMAND_DESPAWN_SELF:
// First try with target or source creature, then with target or source gameobject
if (Creature* cSource = _GetScriptCreatureSourceOrTarget(source, target, step.script, true))
cSource->DespawnOrUnsummon(step.script->DespawnSelf.DespawnDelay);
cSource->DespawnOrUnsummon(Milliseconds(step.script->DespawnSelf.DespawnDelay));
else if (GameObject* goSource = _GetScriptGameObjectSourceOrTarget(source, target, step.script, true))
goSource->DespawnOrUnsummon(Milliseconds(step.script->DespawnSelf.DespawnDelay));
break;