[Fix] Faction comparison should be >0 not != 0.
This commit is contained in:
parent
17b4e1d44b
commit
f3ce7cfb34
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user