diff --git a/src/editor/editor_palettes.cpp b/src/editor/editor_palettes.cpp index 5c2561a5d90..1ccb50da72b 100644 --- a/src/editor/editor_palettes.cpp +++ b/src/editor/editor_palettes.cpp @@ -457,7 +457,7 @@ void terrain_palette::draw(bool force) { << ""; } tooltips::add_tooltip(dstrect, tooltip_text.str()); - if (((int)counter) % terrain_width_ == terrain_width_ - 1) + if (static_cast(counter) % terrain_width_ == terrain_width_ - 1) y += terrain_size_ + size_specs_.terrain_padding; } update_rect(loc);