diff options
author | Carbenium <carbenium@outlook.com> | 2020-07-25 23:07:29 +0200 |
---|---|---|
committer | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-27 13:36:25 +0200 |
commit | 92a02a5c8750913f596d7e3b58bf8439cb770c28 (patch) | |
tree | 3663148e3332b1e51040fc8747c5666850425100 /src/server/game/Scripting/ScriptMgr.cpp | |
parent | 1131229ee9c43704b11187f0b11c327db92018b6 (diff) |
Core/EventProcessor: std::chrono-ify CalculateTime
uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset).
Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.cpp')
-rw-r--r-- | src/server/game/Scripting/ScriptMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.cpp b/src/server/game/Scripting/ScriptMgr.cpp index 438befef440..6e0024e769d 100644 --- a/src/server/game/Scripting/ScriptMgr.cpp +++ b/src/server/game/Scripting/ScriptMgr.cpp @@ -443,7 +443,7 @@ class CreatureGameObjectScriptRegistrySwapHooks // Cast a dummy visual spell asynchronously here to signal // that the AI was hot swapped creature->m_Events.AddEvent(new AsyncCastHotswapEffectEvent(creature), - creature->m_Events.CalculateTime(0)); + creature->m_Events.CalculateTime(0s)); } // Hook which is called after a gameobject was swapped |