mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-30 05:42:56 +02:00
don't crash when releasing an entity that has expired
This commit is contained in:
parent
78aff6e95c
commit
fc128b49de
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ void Avatar::accumulateGrabPositions(std::map<QUuid, GrabLocationAccumulator>& g
|
|||
foreach (auto grabID, _avatarGrabs.keys()) {
|
||||
const GrabPointer& grab = _avatarGrabs.value(grabID);
|
||||
|
||||
if (!grab->getActionID().isNull()) {
|
||||
if (!grab || !grab->getActionID().isNull()) {
|
||||
continue; // the accumulated value isn't used, in this case.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue