Fixed a Clang compiler warning.

This commit is contained in:
Leon Styhre 2023-01-10 22:11:38 +01:00
parent 65f0c0e3c2
commit 688697e334

View file

@ -1238,7 +1238,7 @@ void GuiMenu::openOtherOptions()
if (antiAliasing->getSelectedObjects().size() == 0) if (antiAliasing->getSelectedObjects().size() == 0)
antiAliasing->selectEntry(0); antiAliasing->selectEntry(0);
s->addWithLabel("ANTI-ALIASING (MSAA) (REQUIRES RESTART)", antiAliasing); s->addWithLabel("ANTI-ALIASING (MSAA) (REQUIRES RESTART)", antiAliasing);
s->addSaveFunc([this, antiAliasing, s] { s->addSaveFunc([antiAliasing, s] {
if (antiAliasing->getSelected() != if (antiAliasing->getSelected() !=
std::to_string(Settings::getInstance()->getInt("AntiAliasing"))) { std::to_string(Settings::getInstance()->getInt("AntiAliasing"))) {
Settings::getInstance()->setInt("AntiAliasing", Settings::getInstance()->setInt("AntiAliasing",