summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-16 20:15:28 +0000
committerrubidium <rubidium@openttd.org>2009-07-16 20:15:28 +0000
commitdea1144bcb52b6c5f2c985395b2775cedcbff5ce (patch)
tree3cebb6aa3ae76df53289dc9feae68b253ea6a101 /src/waypoint.cpp
parent1f29e38b8372484d51d852b89fc957eb53635ecb (diff)
downloadopenttd-dea1144bcb52b6c5f2c985395b2775cedcbff5ce.tar.xz
(svn r16850) -Codechange: unify some naming of variables between waypoints and stations.
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 853ddbebd..d970bb14c 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -38,7 +38,7 @@ void WaypointsDailyLoop()
/* Check if we need to delete a waypoint */
FOR_ALL_WAYPOINTS(wp) {
- if (wp->deleted != 0 && --wp->deleted == 0) delete wp;
+ if (wp->delete_ctr != 0 && --wp->delete_ctr == 0) delete wp;
}
}