mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-13 18:09:43 +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)) {
|
if (auto claster = dynamic_cast<Claster*>(obj)) {
|
||||||
const auto copyOfObjectsList = claster->objects();
|
const auto copyOfObjectsList = claster->objects();
|
||||||
for (auto item : copyOfObjectsList) {
|
for (auto item : copyOfObjectsList) {
|
||||||
if (!item || !item->parentClastersCount())
|
if (!item || item->parentClastersCount() > 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int id = item->guiId();
|
int id = item->guiId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user