Make empdump call ef_close() regardless of -n
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 1 Jan 2010 10:15:51 +0000 (11:15 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:37:05 +0000 (08:37 +0100)
Avoiding ef_close() with -n is not necessary, so don't.

src/util/empdump.c

index 4b9a02483d9ba99a1b5787d9f85a19f1096bffa7..cc226a3d2705197b7c0c8a89a2e614456a2e1adf 100644 (file)
@@ -169,7 +169,7 @@ main(int argc, char *argv[])
     for (i = 0; i < EF_MAX; i++) {
        if (!EF_IS_GAME_STATE(i))
            continue;
-       if (!private && dirty[i]) {
+       if (dirty[i]) {
            if (!ef_close(i))
                exit(1);
        }