mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 10:34:56 +02:00
fix insert of second trait instance
This commit is contained in:
parent
25ed166f07
commit
8c58ae4e60
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ namespace AvatarTraits {
|
|||
auto it = instancesForTrait(traitType);
|
||||
|
||||
if (it != _instancedTypes.end()) {
|
||||
auto instancesVector = it->instances;
|
||||
auto& instancesVector = it->instances;
|
||||
auto instanceIt = std::find_if(instancesVector.begin(), instancesVector.end(),
|
||||
[instanceID](InstanceIDValuePair& idValuePair){
|
||||
return idValuePair.id == instanceID;
|
||||
|
|
Loading…
Reference in a new issue