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
commitc40406a2371e40618209fd6914b27b86ec782f9e (patch)
tree4954ba8d5ed81ee78461f8b4337d4cc48d00baba
parent150c4da26dd1e3d5a7991814356c671ce661cce1 (diff)
downloadopenttd-c40406a2371e40618209fd6914b27b86ec782f9e.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);
}