mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:33:09 +02:00
fix bad comparison causing undeleted grabs
This commit is contained in:
parent
c9ef439a7f
commit
f2b9f088b4
1 changed files with 1 additions and 1 deletions
|
@ -1938,7 +1938,7 @@ scriptable::ScriptableModelBase Avatar::getScriptableModel() {
|
||||||
void Avatar::clearAvatarGrabData(const QUuid& id) {
|
void Avatar::clearAvatarGrabData(const QUuid& id) {
|
||||||
AvatarData::clearAvatarGrabData(id);
|
AvatarData::clearAvatarGrabData(id);
|
||||||
_avatarGrabsLock.withWriteLock([&] {
|
_avatarGrabsLock.withWriteLock([&] {
|
||||||
if (_avatarGrabs.find(id) == _avatarGrabs.end()) {
|
if (_avatarGrabs.find(id) != _avatarGrabs.end()) {
|
||||||
_grabsToDelete.push_back(id);
|
_grabsToDelete.push_back(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue