mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:16:51 +02:00
MyAvatar.endReaction return false when no reaction has been trigger previously
This commit is contained in:
parent
da9163616a
commit
19d85ba824
1 changed files with 2 additions and 1 deletions
|
@ -5865,10 +5865,11 @@ bool MyAvatar::endReaction(QString reactionName) {
|
||||||
std::lock_guard<std::mutex> guard(_reactionLock);
|
std::lock_guard<std::mutex> guard(_reactionLock);
|
||||||
if (_reactionEnabledRefCounts[reactionIndex] > 0) {
|
if (_reactionEnabledRefCounts[reactionIndex] > 0) {
|
||||||
_reactionEnabledRefCounts[reactionIndex]--;
|
_reactionEnabledRefCounts[reactionIndex]--;
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
_reactionEnabledRefCounts[reactionIndex] = 0;
|
_reactionEnabledRefCounts[reactionIndex] = 0;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue