summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2010-11-04 19:48:25 +0000
committerbelugas <belugas@openttd.org>2010-11-04 19:48:25 +0000
commitfc0e64586c376f96ba33f13af6c7f7d88ea4cd78 (patch)
tree88d08761c9234398e1f29194398c4cfc4008fdac /src
parent42ee8f7df7598143753d85a6ca08374164b10f15 (diff)
downloadopenttd-fc0e64586c376f96ba33f13af6c7f7d88ea4cd78.tar.xz
(svn r21083) -Codechange: Limit the number of exceptions in the refittable cargo list to 7 (Eddi)
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 56d1c4903..4906d67a7 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -686,7 +686,7 @@ uint ShowRefitOptionsList(int left, int right, int y, EngineID engine)
} else {
/* Check if we are able to refit to more cargo types and unable to. If
* so, invert the cargo types to list those that we can't refit to. */
- if (CountBits(cmask ^ lmask) < CountBits(cmask)) {
+ if (CountBits(cmask ^ lmask) < CountBits(cmask) && CountBits(cmask ^ lmask) <= 7) {
cmask ^= lmask;
b = InlineString(b, STR_PURCHASE_INFO_ALL_BUT);
}