aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsgwander/tst_qsgwander.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qsgwander/tst_qsgwander.cpp')
-rw-r--r--tests/auto/particles/qsgwander/tst_qsgwander.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/particles/qsgwander/tst_qsgwander.cpp b/tests/auto/particles/qsgwander/tst_qsgwander.cpp
index 6e7bc17e17..0a7324862e 100644
--- a/tests/auto/particles/qsgwander/tst_qsgwander.cpp
+++ b/tests/auto/particles/qsgwander/tst_qsgwander.cpp
@@ -68,6 +68,9 @@ void tst_qsgwander::test_basic()
bool vxChanged = false;
bool vyChanged = false;
foreach (QSGParticleData *d, system->groupData[0]->data) {
+ if (d->t == -1)
+ continue; //Particle data unused
+
QCOMPARE(d->ax, 0.f);
QCOMPARE(d->ay, 0.f);
QCOMPARE(d->lifeSpan, 0.5f);