cepheid

An Aurora 4X clone
Log | Files | Refs | README

commit bab1fb545a84939cdaf49a4d2c31f12a7873a993
parent 30628da7e4d20ce04ed2586822634534c9bb4bb8
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 27 Nov 2022 23:37:00 +0000

Don't check for changes when writing db data (as that doesn't mean it's there)

Diffstat:
Mdb/db.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/db/db.c b/db/db.c @@ -669,8 +669,10 @@ dbwritegroup_p(Group *group) { return -1; } - if (!group->changes) - return 0; + /* This isn't a guarantee that the information is + * actually there, so for now always write */ + /* if (!group->changes) */ + /* return 0; */ group->db->changes -= group->changes; group->changes = 0;