fix the loading of chaoscount attributes that I broke in the refactoring.

This commit is contained in:
Enno Rehling 2014-12-13 17:31:55 +01:00
parent a2c98778fd
commit f8136530ef
3 changed files with 5 additions and 3 deletions

View File

@ -44,7 +44,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* at_chaoscount */
/*********************/
attrib_type at_chaoscount = {
"get_chaoscount",
"chaoscount",
DEFAULT_INIT,
DEFAULT_FINALIZE,
DEFAULT_AGE,
@ -251,6 +251,6 @@ void chaos_update(void) {
}
}
void chaos_init(void) {
void chaos_register(void) {
at_register(&at_chaoscount);
}

View File

@ -26,7 +26,7 @@ extern "C" {
extern struct attrib_type at_chaoscount;
void chaos_init(void);
void chaos_register(void);
void chaos_update(void);
int get_chaoscount(const struct region * r);

View File

@ -20,6 +20,7 @@
#include <modules/xmas.h>
#include <items/itemtypes.h>
#include <attributes/attributes.h>
#include "chaos.h"
#include "report.h"
#include "items.h"
#include "creport.h"
@ -73,4 +74,5 @@ void game_init(void)
register_attributes();
register_gmcmd();
chaos_register();
}