From 240aae8c587236ba848e6e701b984d9800f4e70c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 8 Aug 2010 12:04:08 +0200 Subject: [PATCH] bugfix, test crash --- src/gamecode/laws_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gamecode/laws_test.c b/src/gamecode/laws_test.c index 2bc958813..0bf75911f 100644 --- a/src/gamecode/laws_test.c +++ b/src/gamecode/laws_test.c @@ -6,10 +6,12 @@ static void test_new_building_can_be_renamed(CuTest * tc) { region * r; building * b; - building_type * btype = bt_find("castle"); + building_type * btype; test_cleanup(); test_create_world(); + + btype = bt_find("castle"); r = findregion(-1, 0); b = new_building(btype, r, default_locale);