[Client] Fix actor memory leaks, part 2

0.6.1
David Cernat 8 years ago
parent 9b58973929
commit f59609fcd7

@ -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…
Cancel
Save