Skip to content

Commit

Permalink
do not save alliances to dead factions
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Feb 10, 2024
1 parent 24063b3 commit 65a8dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/ally.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void write_allies(gamedata * data, const allies *alist)
int i;
for (i = 0; i != al->num; ++i) {
const faction * f = al->factions[i];
if (f && f->_alive) {
if (f && faction_alive(f)) {
write_faction_reference(f, data->store);
assert(al->status[i] > 0);
WRITE_INT(data->store, al->status[i]);
Expand Down

0 comments on commit 65a8dba

Please sign in to comment.