diff options
author | rubidium <rubidium@openttd.org> | 2011-09-08 17:54:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-09-08 17:54:49 +0000 |
commit | db12a5f703927d89cbd723654392d34bce5904c5 (patch) | |
tree | f4df060a46d0432a55dffe7dcd2cbccfd3246066 /src | |
parent | 6531bf3ded6ec0b48656adbed63d81aa1f02b355 (diff) | |
download | openttd-db12a5f703927d89cbd723654392d34bce5904c5.tar.xz |
(svn r22908) -Codechange: silence MSVC warning
Diffstat (limited to 'src')
-rw-r--r-- | src/tree_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp index 63018f41a..e91675ae5 100644 --- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -88,8 +88,8 @@ public: offset.x = 0; offset.y = 0; - for (uint i = this->base; i < this->base + this->count; i++) { - if (i >= lengthof(tree_sprites)) return size; + for (int i = this->base; i < this->base + this->count; i++) { + if (i >= (int)lengthof(tree_sprites)) return size; this_size = GetSpriteSize(tree_sprites[i].sprite, &offset); size.width = max<int>(size.width, 2 * max<int>(this_size.width, -offset.x)); size.height = max<int>(size.height, max<int>(this_size.height, -offset.y)); |