initizlize rc_elf

This commit is contained in:
Enno Rehling 2016-09-22 09:37:54 +02:00
parent ac4f8d6e7b
commit e45dc3d68a
1 changed files with 3 additions and 0 deletions

View File

@ -3471,6 +3471,9 @@ static double heal_factor(const unit * u)
if (r_isforest(u->region)) {
static int rc_cache;
static const race *rc_elf;
if (rc_changed(&rc_cache)) {
rc_elf = get_race(RC_ELF);
}
if (rc==rc_elf) {
static int config;
static double elf_regen = 1.0;