3
0
Fork 0
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:
Seth Alves 2018-12-10 15:17:06 -08:00
parent 78aff6e95c
commit fc128b49de

View file

@ -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.
}