mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
gcc and clang don't like this
This commit is contained in:
parent
4f10d5d544
commit
221f6f134d
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user