diff --git a/Source/levels/themes.cpp b/Source/levels/themes.cpp index 699ed2ea651..ef886f4c722 100644 --- a/Source/levels/themes.cpp +++ b/Source/levels/themes.cpp @@ -854,7 +854,7 @@ void InitThemes() themes[numthemes].ttype = j; numthemes++; } - if (i == std::numeric_limits::max()) + if (i > TransVal) break; } return;