]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/navigation.qc
Merge branch 'terencehill/menu_registries' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / navigation.qc
index 6a1dc962b37746a34c3c31cccb49ba03b90971bf..8fc33448b9401cb5c1f5faf6f246c0c6b3429d28 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;
                        }
                }