mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 03:56:32 +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);
|
||||
if (_reactionEnabledRefCounts[reactionIndex] > 0) {
|
||||
_reactionEnabledRefCounts[reactionIndex]--;
|
||||
return true;
|
||||
} else {
|
||||
_reactionEnabledRefCounts[reactionIndex] = 0;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue