1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 05:39:41 +00:00

gcc and clang don't like this

This commit is contained in:
wareya 2021-10-31 17:48:03 -04:00
parent 4f10d5d544
commit 221f6f134d

View file

@ -396,14 +396,14 @@ namespace MWGui
void SettingsWindow::onWaterReflectionDetailChanged(MyGUI::ComboBox* _sender, size_t pos)
{
unsigned int level = unsigned int(std::min<size_t>(pos, 5));
unsigned int level = static_cast<unsigned int>(std::min<size_t>(pos, 5));
Settings::Manager::setInt("reflection detail", "Water", level);
apply();
}
void SettingsWindow::onWaterRainRippleDetailChanged(MyGUI::ComboBox* _sender, size_t pos)
{
unsigned int level = unsigned int(std::min<size_t>(pos, 2));
unsigned int level = static_cast<unsigned int>(std::min<size_t>(pos, 2));
Settings::Manager::setInt("rain ripple detail", "Water", level);
apply();
}