From f3ce7cfb3401014111b05df5700db19ff2ae28fe Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Thu, 15 Aug 2013 16:17:26 +0100
Subject: [PATCH] [Fix] Faction comparison should be >0 not != 0.

---
 src/map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/map.c b/src/map.c
index 6905e52..6346b73 100644
--- a/src/map.c
+++ b/src/map.c
@@ -197,7 +197,7 @@ static void map_update(void) {
     nstanding = 0;
     f = -1;
     for(i = 0; i < sys->nplanets; i++) {
-      if((f == -1) && (sys->planets[i].faction != 0)) {
+      if((f == -1) && (sys->planets[i].faction > 0)) {
         f = sys->planets[i].faction;
         standing += faction_getPlayer(f);
         nstanding++;