forked from github/server
I broke the Lua tests, must initialize resources in eressea.free_game binding
This commit is contained in:
parent
e04a541167
commit
80be0a8e89
|
@ -5,6 +5,7 @@
|
|||
#include "json.h"
|
||||
|
||||
#include <kernel/faction.h>
|
||||
#include <kernel/item.h>
|
||||
#include <kernel/config.h>
|
||||
#include <kernel/save.h>
|
||||
|
||||
|
@ -14,6 +15,7 @@
|
|||
|
||||
void eressea_free_game(void) {
|
||||
free_gamedata();
|
||||
init_resources();
|
||||
}
|
||||
|
||||
int eressea_read_game(const char * filename) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue