From be0cc939176365dccb9d8587a8577ed8e7d330b4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 10 Mar 2016 23:05:24 +0100 Subject: [PATCH] this test is poorly written, and a trap --- src/spells/flyingship.test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spells/flyingship.test.c b/src/spells/flyingship.test.c index 1b88bd7fb..98e524926 100644 --- a/src/spells/flyingship.test.c +++ b/src/spells/flyingship.test.c @@ -49,6 +49,7 @@ static void test_flyingship(CuTest * tc) CuAssertTrue(tc, !flying_ship(sh1)); CuAssertIntEquals(tc, 10, sp_flying_ship(&co)); CuAssertTrue(tc, flying_ship(sh1)); + co.par = 0; free_castorder(&co); sh2 = test_create_ship(r, shipType2); @@ -58,6 +59,7 @@ static void test_flyingship(CuTest * tc) CuAssertTrue(tc, !flying_ship(sh2)); CuAssertIntEquals(tc, 0, sp_flying_ship(&co)); CuAssertTrue(tc, !flying_ship(sh2)); + co.par = 0; free_castorder(&co); test_cleanup(); }