aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp')
-rw-r--r--tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp b/tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp
index 642ef28aa6..0f37fc0f72 100644
--- a/tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp
+++ b/tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp
@@ -64,6 +64,9 @@ void tst_qsgtargetdirection::test_basic()
QCOMPARE(system->groupData[0]->size(), 500);
foreach (QSGParticleData *d, system->groupData[0]->data) {
+ if (d->t == -1)
+ continue; //Particle data unused
+
QCOMPARE(d->x, 0.f);
QCOMPARE(d->y, 0.f);
QCOMPARE(d->vx, 160.f);