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

(cherry picked from commit 13a5d2d42d)
This commit is contained in:
Razmataz
2024-08-27 23:12:42 +01:00
committed by Ovahlord
parent a348eb7b01
commit f84033df2b

View File

@@ -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);