functions need to be defined before used by items (before xml)

This commit is contained in:
Enno Rehling 2005-10-26 20:30:02 +00:00
parent e31215f8f1
commit 756b65b1ed
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,8 @@
#include <kernel/study.h>
#include <kernel/unit.h>
#include <items/demonseye.h>
#include <util/attrib.h>
#include <util/functions.h>
#include <util/rand.h>
@ -260,6 +262,7 @@ use_aurapotion50(struct unit * u, const struct item_type * itype,
void
register_itemfunctions(void)
{
register_demonseye();
register_function((pf_generic)use_antimagiccrystal, "use_antimagiccrystal");
register_function((pf_generic)use_instantartsculpture, "use_instantartsculpture");
register_function((pf_generic)use_studypotion, "use_studypotion");

View File

@ -14,7 +14,6 @@
#include <eressea.h>
#include "itemtypes.h"
#include "demonseye.h"
#include "xerewards.h"
#include "artrewards.h"
#include "weapons.h"
@ -24,7 +23,6 @@ void
init_itemtypes(void)
{
register_weapons();
register_demonseye();
register_xerewards();
register_artrewards();
init_weapons();