4
1
mirror of https://github.com/QuasarApp/Snake.git synced 2025-05-10 16:39:45 +00:00

ref fix tests

This commit is contained in:
Andrei Yankovich 2021-06-30 22:45:17 +03:00
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();