Bug 2444: set default scores

This commit is contained in:
Enno Rehling 2018-05-24 16:40:50 +02:00
parent b353de43de
commit 95c5c86303
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,8 @@
#include "alchemy.h"
#include "modules/score.h"
#include "kernel/build.h"
#include "kernel/building.h"
#include "kernel/item.h"
@ -229,6 +231,9 @@ static void handle_item(parseinfo *pi, const XML_Char *el, const XML_Char **attr
handle_bad_input(pi, el, attr[i]);
}
}
if (itype->score == 0) {
itype->score = default_score(itype);
}
itype->flags = flags;
}