1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Use named casts on openrct2-ui/interface

This commit is contained in:
Tulio Leao
2020-03-28 16:36:51 -03:00
parent 8823658972
commit b579771364
4 changed files with 20 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ rct_window* window_create(
{
// Check if there are any window slots left
// include WINDOW_LIMIT_RESERVED for items such as the main viewport and toolbars to not appear to be counted.
if (g_window_list.size() >= (size_t)(gConfigGeneral.window_limit + WINDOW_LIMIT_RESERVED))
if (g_window_list.size() >= static_cast<size_t>(gConfigGeneral.window_limit + WINDOW_LIMIT_RESERVED))
{
// Close least recently used window
for (auto& w : g_window_list)