fix an AC script's ability to delete entities

This commit is contained in:
Seth Alves 2016-09-26 17:14:45 -07:00
parent 43a3a9a7bd
commit 90adb5f67e

View file

@ -116,8 +116,9 @@ void EntityEditPacketSender::queueEraseEntityMessage(const EntityItemID& entityI
}
// in case this was a clientOnly entity:
assert(_myAvatar);
_myAvatar->clearAvatarEntity(entityItemID);
if(_myAvatar) {
_myAvatar->clearAvatarEntity(entityItemID);
}
QByteArray bufferOut(NLPacket::maxPayloadSize(PacketType::EntityErase), 0);