summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-24 14:10:24 +0000
committerglx <glx@openttd.org>2009-01-24 14:10:24 +0000
commita92f472714dc4f8045be5a0c03c638fa91940c9c (patch)
tree4954ba8d5ed81ee78461f8b4337d4cc48d00baba
parentba397634fde4472a850eece8cee544a6a7ac23b6 (diff)
downloadopenttd-a92f472714dc4f8045be5a0c03c638fa91940c9c.tar.xz
(svn r15254) -Fix (r15242): of course MSVC requires a cast
-rw-r--r--src/toolbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 96f9b312d..2ba49dab3 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -232,7 +232,7 @@ static void PopupMainCompanyToolbMenu(Window *w, int widget, int grey = 0)
list->push_back(new DropDownListCompanyItem(c, false, HasBit(grey, c)));
}
- ShowDropDownList(w, list, _local_company == COMPANY_SPECTATOR ? CTMN_CLIENT_LIST : _local_company, widget, 240, true, true);
+ ShowDropDownList(w, list, _local_company == COMPANY_SPECTATOR ? CTMN_CLIENT_LIST : (int)_local_company, widget, 240, true, true);
SndPlayFx(SND_15_BEEP);
}