From f72314e915b591471e520379d6ec6ff112ec76b2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 29 Oct 2015 08:47:58 +0100 Subject: [PATCH] coverity scan CID 22451 (logically dead code) --- src/creport.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/creport.c b/src/creport.c index 7ad0044e2..23f4f5671 100644 --- a/src/creport.c +++ b/src/creport.c @@ -637,8 +637,9 @@ faction * f) fprintf(F, "\"%s\";Beschr\n", b->display); if (b->size) fprintf(F, "%d;Groesse\n", b->size); - if (owner) - fprintf(F, "%d;Besitzer\n", owner ? owner->no : -1); + if (owner) { + fprintf(F, "%d;Besitzer\n", owner->no); + } if (fno >= 0) fprintf(F, "%d;Partei\n", fno); if (b->besieged) @@ -667,8 +668,9 @@ const faction * f, const region * r) (sh->damage * 100 + DAMAGE_SCALE - 1) / (sh->size * DAMAGE_SCALE); fprintf(F, "%d;Schaden\n", percent); } - if (u) - fprintf(F, "%d;Kapitaen\n", u ? u->no : -1); + if (u) { + fprintf(F, "%d;Kapitaen\n", u->no); + } if (fcaptain >= 0) fprintf(F, "%d;Partei\n", fcaptain);