mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 08:39:44 +00:00
gcc and clang don't like this
This commit is contained in:
parent
4f10d5d544
commit
221f6f134d
1 changed files with 2 additions and 2 deletions
|
@ -396,14 +396,14 @@ namespace MWGui
|
||||||
|
|
||||||
void SettingsWindow::onWaterReflectionDetailChanged(MyGUI::ComboBox* _sender, size_t pos)
|
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);
|
Settings::Manager::setInt("reflection detail", "Water", level);
|
||||||
apply();
|
apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWindow::onWaterRainRippleDetailChanged(MyGUI::ComboBox* _sender, size_t pos)
|
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);
|
Settings::Manager::setInt("rain ripple detail", "Water", level);
|
||||||
apply();
|
apply();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue