forked from teamnwah/openmw-tes3coop
[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))
|
||||
Main::get().getCellController()->getCell(actor->cell)->initializeDedicatedActor(actor->getPtr());
|
||||
|
||||
delete actor;
|
||||
dedicatedActors.erase(mapIndex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue