summaryrefslogtreecommitdiff
path: root/src/group_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-07-01 23:49:13 +0000
committersmatz <smatz@openttd.org>2009-07-01 23:49:13 +0000
commitecfaa0564d9588b9f6826b1033d93b827751f410 (patch)
treef04dff76baabb0dcc7e952f9d81b70828398a740 /src/group_cmd.cpp
parentadc5363202629aa07c762f459d7e9f5bc78efa34 (diff)
downloadopenttd-ecfaa0564d9588b9f6826b1033d93b827751f410.tar.xz
(svn r16718) -Codechange: make IsFreeWagon() member of Train
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r--src/group_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index cc07395e2..bd4905268 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -368,7 +368,7 @@ void SetTrainGroupID(Train *v, GroupID new_g)
*/
void UpdateTrainGroupID(Train *v)
{
- assert(v->IsFrontEngine() || IsFreeWagon(v));
+ assert(v->IsFrontEngine() || v->IsFreeWagon());
GroupID new_g = v->IsFrontEngine() ? v->group_id : (GroupID)DEFAULT_GROUP;
for (Vehicle *u = v; u != NULL; u = u->Next()) {