diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/base/patrol.cc | 3 |
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"; |