mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-10 16:39:45 +00:00
ref #63 fix tests
This commit is contained in:
parent
4bebdc5933
commit
31d4b8cdac
@ -210,7 +210,7 @@ void IWorld::removeItem(int id, QList<int> *removedObjectsList) {
|
||||
if (auto claster = dynamic_cast<Claster*>(obj)) {
|
||||
const auto copyOfObjectsList = claster->objects();
|
||||
for (auto item : copyOfObjectsList) {
|
||||
if (!item || !item->parentClastersCount())
|
||||
if (!item || item->parentClastersCount() > 1)
|
||||
continue;
|
||||
|
||||
int id = item->guiId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user