summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tree_gui.cpp4
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));