From 9c24fe4b0771a7b5ede2b5f5f13a40e505e2f813 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 30 Oct 2017 18:12:24 +0100 Subject: [PATCH] fix gcc build --- src/move.test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/move.test.c b/src/move.test.c index 76940a667..d5be5c3f5 100644 --- a/src/move.test.c +++ b/src/move.test.c @@ -477,18 +477,18 @@ static void test_follow_ship_msg(CuTest * tc) { static void test_drifting_ships(CuTest *tc) { ship *sh; - region *r1, *r2, *r3; + region *r; terrain_type *t_ocean, *t_plain; ship_type *st_boat; test_setup(); t_ocean = test_create_terrain("ocean", SEA_REGION); t_plain = test_create_terrain("plain", LAND_REGION); - r1 = test_create_region(0, 0, t_ocean); - r2 = test_create_region(1, 0, t_ocean); + r = test_create_region(0, 0, t_ocean); + test_create_region(1, 0, t_ocean); st_boat = test_create_shiptype("boat"); - sh = test_create_ship(r1, st_boat); + sh = test_create_ship(r, st_boat); CuAssertIntEquals(tc, D_EAST, drift_target(sh)); - r3 = test_create_region(-1, 0, t_plain); + test_create_region(-1, 0, t_plain); CuAssertIntEquals(tc, D_WEST, drift_target(sh)); test_cleanup(); }