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