mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-22 12:00:03 +00:00
Fix viewableChunks memory leaks
This commit is contained in:
@@ -84,6 +84,7 @@ void NPCManager::destroyNPC(int32_t id) {
|
||||
Eggs.erase(id);
|
||||
|
||||
// finally, remove it from the map and free it
|
||||
delete entity->viewableChunks;
|
||||
NPCs.erase(id);
|
||||
delete entity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user