forked from github/server
bugfix, test crash
This commit is contained in:
parent
a5e712580f
commit
240aae8c58
1 changed files with 3 additions and 1 deletions
|
@ -6,10 +6,12 @@
|
||||||
static void test_new_building_can_be_renamed(CuTest * tc) {
|
static void test_new_building_can_be_renamed(CuTest * tc) {
|
||||||
region * r;
|
region * r;
|
||||||
building * b;
|
building * b;
|
||||||
building_type * btype = bt_find("castle");
|
building_type * btype;
|
||||||
|
|
||||||
test_cleanup();
|
test_cleanup();
|
||||||
test_create_world();
|
test_create_world();
|
||||||
|
|
||||||
|
btype = bt_find("castle");
|
||||||
r = findregion(-1, 0);
|
r = findregion(-1, 0);
|
||||||
|
|
||||||
b = new_building(btype, r, default_locale);
|
b = new_building(btype, r, default_locale);
|
||||||
|
|
Loading…
Reference in a new issue