fix(Core/Maps): Move corpse expiration updates to map (#22780)

This commit is contained in:
Takenbacon
2025-09-03 16:29:15 -07:00
committed by GitHub
parent fa9e34de88
commit af31aaa374
6 changed files with 24 additions and 24 deletions

View File

@@ -21,6 +21,7 @@
#include "GameTime.h"
#include "GitRevision.h"
#include "Log.h"
#include "MapMgr.h"
#include "ModuleMgr.h"
#include "MotdMgr.h"
#include "MySQLThreading.h"
@@ -101,7 +102,10 @@ public:
// Triggering corpses expire check in world
static bool HandleServerCorpsesCommand(ChatHandler* /*handler*/)
{
sWorld->RemoveOldCorpses();
sMapMgr->DoForAllMaps([](Map* map)
{
map->RemoveOldCorpses();
});
return true;
}