mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #8666 from sethalves/fix-ac-delete-entity
fix an AC script's ability to delete entities
This commit is contained in:
commit
9363c4dda6
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue