Showing the changes to interface/src/scripting/SelectionScriptingInterface.cpp (1 of 12 files). Show all
Unified · Split
| @@ -17,7 +17,7 @@ GameplayObjects::GameplayObjects() { · 16 unmodified lines | |||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | bool GameplayObjects::addToGameplayObjects(const QUuid& avatarID) { | 19 | bool GameplayObjects::addToGameplayObjects(const QUuid& avatarID) { |
| 20 | containsData = true; | 20 | _containsData = true; |
| 21 | if (std::find(_avatarIDs.begin(), _avatarIDs.end(), avatarID) == _avatarIDs.end()) { | 21 | if (std::find(_avatarIDs.begin(), _avatarIDs.end(), avatarID) == _avatarIDs.end()) { |
| 22 | _avatarIDs.push_back(avatarID); | 22 | _avatarIDs.push_back(avatarID); |
| 23 | } | 23 | } |
| @@ -29,7 +29,7 @@ bool GameplayObjects::removeFromGameplayObjects(const QUuid& avatarID) { · 5 unmodified lines | |||
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | bool GameplayObjects::addToGameplayObjects(const EntityItemID& entityID) { | 31 | bool GameplayObjects::addToGameplayObjects(const EntityItemID& entityID) { |
| 32 | containsData = true; | 32 | _containsData = true; |
| 33 | if (std::find(_entityIDs.begin(), _entityIDs.end(), entityID) == _entityIDs.end()) { | 33 | if (std::find(_entityIDs.begin(), _entityIDs.end(), entityID) == _entityIDs.end()) { |
| 34 | _entityIDs.push_back(entityID); | 34 | _entityIDs.push_back(entityID); |
| 35 | } | 35 | } |