]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/navigation.qc
Wrap all status and bitflag checks with parentesis to avoid possible obscure bugs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / navigation.qc
index 87bb5c0cd18246bbcbd16b5678776a3364860338..98069e0abe527a2a4620f2be8e5c490d9cdc90df 100644 (file)
@@ -1738,7 +1738,7 @@ int navigation_poptouchedgoals(entity this)
 
                                navigation_poproute(this);
                                ++removed_goals;
-                               if(this.goalcurrent && this.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT)
+                               if(this.goalcurrent && (this.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT))
                                        return removed_goals;
                        }
                }