Skip to content

Commit

Permalink
deal with monster faction having an unknown race
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Dec 30, 2024
1 parent abe7479 commit 6c09ce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kernel/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,9 @@ faction *read_faction(gamedata * data)
f->race = rc_find(name);
if (!f->race) {
log_error("unknown race in data: %s", name);
f->race = rc_find("smurf");
assert(f->race);
}
assert(f->race);
READ_INT(data->store, &n);
f->magiegebiet = (magic_t)n;

Expand Down

0 comments on commit 6c09ce8

Please sign in to comment.