summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-14 21:49:13 +0000
committerrubidium <rubidium@openttd.org>2008-04-14 21:49:13 +0000
commit5766d4a5c0e1745094aaf8bc2c91e1a6e0d7638e (patch)
treef8536b5583235b6f8cc7d23df25f27469e722d3b /src
parent90bd1e45eb68d73eada2dfde1dab5b949ca28dd4 (diff)
downloadopenttd-5766d4a5c0e1745094aaf8bc2c91e1a6e0d7638e.tar.xz
(svn r12713) -Fix: misleading comment. Patch by Yexo.
Diffstat (limited to 'src')
-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 52f612cc0..17d82129c 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -39,7 +39,7 @@ static inline void UpdateNumEngineGroup(EngineID i, GroupID old_g, GroupID new_g
/* Decrease the num engines of EngineID i of the old group if it's not the default one */
if (!IsDefaultGroupID(old_g) && IsValidGroupID(old_g)) GetGroup(old_g)->num_engines[i]--;
- /* Increase the num engines of EngineID i of the new group if it's not the new one */
+ /* Increase the num engines of EngineID i of the new group if it's not the default one */
if (!IsDefaultGroupID(new_g) && IsValidGroupID(new_g)) GetGroup(new_g)->num_engines[i]++;
}
}