mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 23:26:25 +02:00
avoid possible crash
This commit is contained in:
parent
f33e5ba5ae
commit
c6f44234f8
1 changed files with 3 additions and 1 deletions
|
@ -5309,7 +5309,9 @@ void MyAvatar::releaseGrab(const QUuid& grabID) {
|
|||
grab->setReleased(true);
|
||||
bool success;
|
||||
SpatiallyNestablePointer target = SpatiallyNestable::findByID(grab->getTargetID(), success);
|
||||
target->disableGrab(grab);
|
||||
if (target) {
|
||||
target->disableGrab(grab);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue