Merge pull request #8666 from sethalves/fix-ac-delete-entity

fix an AC script's ability to delete entities
This commit is contained in:
Brad Hefta-Gaub 2016-09-26 17:35:24 -07:00 committed by GitHub
commit 9363c4dda6

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