Skip to content

Commit bcd6385

Browse files
committed
Fix objects with background implementations getting recreated unnecessarily
1 parent 09fa750 commit bcd6385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Objects/ImplementationBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void ObjectImplementationManager::handleAsyncUpdate()
153153
for (auto it = objectImplementations.cbegin(); it != objectImplementations.cend();) {
154154
auto& [ptr, implementation] = *it;
155155

156-
if (allObjects.contains(ptr)) {
156+
if (!allObjects.contains(ptr)) {
157157
it = objectImplementations.erase(it); // Erase and move iterator forward.
158158
} else {
159159
++it;

0 commit comments

Comments
 (0)