[Client] Don't update already initialized but deleted LocalActors

pull/556/head
David Cernat 5 years ago
parent c253950dd7
commit 7dd03798e7

@ -81,7 +81,7 @@ void Cell::updateLocal(bool forceUpdate)
{
// Forcibly update this local actor if its data has never been sent before;
// otherwise, use the current forceUpdate value
if (actor->getPtr().getRefData().isEnabled())
if (actor->getPtr().getRefData().isEnabled() && !actor->getPtr().getRefData().isDeleted())
actor->update(actor->hasSentData ? forceUpdate : true);
++it;

Loading…
Cancel
Save