mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-17 23:06:47 +00:00
[Client] Fix actor memory leaks, part 2
This commit is contained in:
parent
9b58973929
commit
f59609fcd7
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ void Cell::readCellChange(ActorList& actorList)
|
||||||
if (Main::get().getCellController()->isInitializedCell(actor->cell))
|
if (Main::get().getCellController()->isInitializedCell(actor->cell))
|
||||||
Main::get().getCellController()->getCell(actor->cell)->initializeDedicatedActor(actor->getPtr());
|
Main::get().getCellController()->getCell(actor->cell)->initializeDedicatedActor(actor->getPtr());
|
||||||
|
|
||||||
|
delete actor;
|
||||||
dedicatedActors.erase(mapIndex);
|
dedicatedActors.erase(mapIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue