diff options
Diffstat (limited to 'tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp')
-rw-r--r-- | tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp b/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp index 2a7e978b8b..d5ae596ce5 100644 --- a/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp +++ b/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp @@ -64,8 +64,9 @@ void tst_qsgcustomaffector::test_basic() QCOMPARE(system->groupData[0]->size(), 500); foreach (QSGParticleData *d, system->groupData[0]->data) { - if (d->t == -1) //Recycler out-smarted me and never needed to init this datum - continue; + if (d->t == -1) + continue; //Particle data unused + QCOMPARE(d->x, 100.f); QCOMPARE(d->y, 100.f); QCOMPARE(d->vx, 100.f); |