From 80be0a8e89513220aa391d78c40d9c50a18bd272 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 31 Dec 2014 00:20:19 +0100 Subject: [PATCH] I broke the Lua tests, must initialize resources in eressea.free_game binding --- src/bind_eressea.c | 2 ++ src/kernel/item.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bind_eressea.c b/src/bind_eressea.c index a345f6c19..170a8cb08 100755 --- a/src/bind_eressea.c +++ b/src/bind_eressea.c @@ -5,6 +5,7 @@ #include "json.h" #include +#include #include #include @@ -14,6 +15,7 @@ void eressea_free_game(void) { free_gamedata(); + init_resources(); } int eressea_read_game(const char * filename) { diff --git a/src/kernel/item.h b/src/kernel/item.h index afccf8ba9..d40e2d90c 100644 --- a/src/kernel/item.h +++ b/src/kernel/item.h @@ -313,9 +313,9 @@ extern "C" { extern struct attrib_type at_showitem; /* show this potion's description */ - extern void register_resources(void); - extern void init_resources(void); - extern void init_itemtypes(void); + void register_resources(void); + void init_resources(void); + void init_itemtypes(void); extern void register_item_give(int (*foo) (struct unit *, struct unit *, const struct item_type *, int, struct order *), const char *name);