aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/MapScripts.cpp
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2020-07-26 01:01:30 +0200
committerPeter Keresztes Schmidt <carbenium@outlook.com>2020-07-26 22:17:36 +0200
commitc39eb9b5041950ce3af89f82848bd3e1f3a6e0af (patch)
treeaaaddf9d77cd731899b350de3ae725c509794f05 /src/server/game/Maps/MapScripts.cpp
parentd1a39a2ebf3bb55998696c424cd58f3fcdedd66a (diff)
Core/Misc: Use std::chrono overload of Creature::DespawnOrUnsummon
Diffstat (limited to 'src/server/game/Maps/MapScripts.cpp')
-rw-r--r--src/server/game/Maps/MapScripts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Maps/MapScripts.cpp b/src/server/game/Maps/MapScripts.cpp
index 7540b80b8a8..526e153d80d 100644
--- a/src/server/game/Maps/MapScripts.cpp
+++ b/src/server/game/Maps/MapScripts.cpp
@@ -789,7 +789,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;