(svn r22908) -Codechange: silence MSVC warning

This commit is contained in:
rubidium 2011-09-08 17:54:49 +00:00
parent 6531bf3ded
commit db12a5f703
1 changed files with 2 additions and 2 deletions

View File

@ -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));