Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/base/patrol.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/base/patrol.cc b/src/game/base/patrol.cc
index 78d2ebd..679b81e 100644
--- a/src/game/base/patrol.cc
+++ b/src/game/base/patrol.cc
@@ -81,10 +81,11 @@ void Patrol::set_faction(Faction *faction)
void Patrol::validate()
{
- int waypoint_counter = 1;
+ int waypoint_counter = 0;
for (WayPoints::iterator it = patrol_waypoints.begin(); it != patrol_waypoints.end(); ++it) {
WayPoint *waypoint = (*it);
+ ++waypoint_counter;
if (waypoint->target_label().size() == 0) {
con_warn << " Patrol '" << label() << "' WayPoint " << waypoint_counter << " has no target" << "'\n";