summaryrefslogtreecommitdiff
path: root/src/ai/ai_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-23 02:01:05 +0000
committerrubidium <rubidium@openttd.org>2009-01-23 02:01:05 +0000
commit83e1288c6a327f711f047aff1e03e5f4a9dfc058 (patch)
tree1e43f88338690d1359c84c111155e7a20af52a2f /src/ai/ai_gui.cpp
parent92f5c6b1da1b369e4518fc1f59b30feb9c771c30 (diff)
downloadopenttd-83e1288c6a327f711f047aff1e03e5f4a9dfc058.tar.xz
(svn r15215) -Fix: various MSVC x64 compiler warnings
Diffstat (limited to 'src/ai/ai_gui.cpp')
-rw-r--r--src/ai/ai_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 0425bd4b5..a68613530 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -64,7 +64,7 @@ struct AIListWindow : public Window {
this->resize.step_height = 14;
this->vscroll.cap = (this->widget[AIL_WIDGET_LIST].bottom - this->widget[AIL_WIDGET_LIST].top) / 14 + 1;
this->widget[AIL_WIDGET_LIST].data = (this->vscroll.cap << 8) + 1;
- SetVScrollCount(this, this->ai_info_list->size() + 1);
+ SetVScrollCount(this, (int)this->ai_info_list->size() + 1);
/* Try if we can find the currently selected AI */
this->selected = -1;
@@ -251,7 +251,7 @@ struct AISettingsWindow : public Window {
this->resize.step_height = 14;
this->vscroll.cap = (this->widget[AIS_WIDGET_BACKGROUND].bottom - this->widget[AIS_WIDGET_BACKGROUND].top) / 14 + 1;
this->widget[AIS_WIDGET_BACKGROUND].data = (this->vscroll.cap << 8) + 1;
- SetVScrollCount(this, this->ai_config->GetConfigList()->size());
+ SetVScrollCount(this, (int)this->ai_config->GetConfigList()->size());
this->FindWindowPlacementAndResize(desc);
}