[Client] Fix actor memory leaks, part 2

This commit is contained in:
David Cernat 2017-05-02 02:45:18 +03:00
parent 9b58973929
commit f59609fcd7

View file

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