From 315066309ad3e0c954a07f03eaae305790d100b7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 12 Mar 2011 16:58:45 -0800 Subject: [PATCH] create races with a minimum of hitpoints so tests don't break. --- src/kernel/race.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel/race.c b/src/kernel/race.c index dc35e62f1..3252f09b0 100644 --- a/src/kernel/race.c +++ b/src/kernel/race.c @@ -99,7 +99,9 @@ void racelist_insert(struct race_list **rl, const struct race *r) race *rc_new(const char *zName) { char zBuffer[80]; - race *rc = calloc(sizeof(race), 1); + race *rc = (race *)calloc(sizeof(race), 1); + + rc->hitpoints = 1; if (strchr(zName, ' ') != NULL) { log_error(("race '%s' has an invalid name. remove spaces\n", zName)); assert(strchr(zName, ' ') == NULL);