Core/Maps: Decrement map unload timer by correct (accumulated) time diff

Port From (https://github.com/TrinityCore/TrinityCore/commit/13a5d2d42d122415d56ba297ddf6ed9e16aaf30d)
This commit is contained in:
Hondacrx
2024-10-09 00:27:46 -04:00
parent 93350b102e
commit fbe4130a54
+1 -1
View File
@@ -296,7 +296,7 @@ namespace Game.Entities
var time = (uint)i_timer.GetCurrent();
foreach (var (key, map) in i_maps)
{
if (map.CanUnload(diff))
if (map.CanUnload((uint)i_timer.GetCurrent()))
{
if (DestroyMap(map))
i_maps.Remove(key);