diff options
author | rubidium <rubidium@openttd.org> | 2009-04-29 10:00:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-29 10:00:58 +0000 |
commit | afada70bac8e40e87006f7c526feeaabc2feb953 (patch) | |
tree | 12f8632ca4164b7300eaa852855ab0fa59358d67 /src | |
parent | e41886e78f4f822513a8a486d6fb4bba5309c256 (diff) | |
download | openttd-afada70bac8e40e87006f7c526feeaabc2feb953.tar.xz |
(svn r16182) -Fix: hardcoded (old sized) MAX_COMPANIES constant
Diffstat (limited to 'src')
-rw-r--r-- | src/misc_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index a25a7c848..ba584b734 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -552,7 +552,7 @@ void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y) Point pt; const ViewPort *vp; - if (msg_1 != STR_ERROR_OWNED_BY || GetDParam(2) >= 8) { + if (msg_1 != STR_ERROR_OWNED_BY || GetDParam(2) >= MAX_COMPANIES) { if ((x | y) != 0) { pt = RemapCoords2(x, y); vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport; |