diff options
author | smatz <smatz@openttd.org> | 2009-07-01 23:49:13 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-01 23:49:13 +0000 |
commit | ecfaa0564d9588b9f6826b1033d93b827751f410 (patch) | |
tree | f04dff76baabb0dcc7e952f9d81b70828398a740 /src/group_cmd.cpp | |
parent | adc5363202629aa07c762f459d7e9f5bc78efa34 (diff) | |
download | openttd-ecfaa0564d9588b9f6826b1033d93b827751f410.tar.xz |
(svn r16718) -Codechange: make IsFreeWagon() member of Train
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r-- | src/group_cmd.cpp | 2 |
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()) { |