mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Maps: Decrement map unload timer by correct (accumulated) time diff (#30197)
(cherry picked from commit 13a5d2d42d)
This commit is contained in:
@@ -309,7 +309,7 @@ void MapManager::Update(uint32 diff)
|
||||
MapMapType::iterator iter = i_maps.begin();
|
||||
while (iter != i_maps.end())
|
||||
{
|
||||
if (iter->second->CanUnload(diff))
|
||||
if (iter->second->CanUnload(uint32(i_timer.GetCurrent())))
|
||||
{
|
||||
if (DestroyMap(iter->second.get()))
|
||||
iter = i_maps.erase(iter);
|
||||
|
||||
Reference in New Issue
Block a user