diff options
Diffstat (limited to 'Minecraft.Client/OptionsScreen.cpp')
| -rw-r--r-- | Minecraft.Client/OptionsScreen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/OptionsScreen.cpp b/Minecraft.Client/OptionsScreen.cpp index b5c2f5e6..50764006 100644 --- a/Minecraft.Client/OptionsScreen.cpp +++ b/Minecraft.Client/OptionsScreen.cpp @@ -47,9 +47,9 @@ void OptionsScreen::init() void OptionsScreen::buttonClicked(Button *button) { if (!button->active) return; - if (button->id < 100 && (dynamic_cast<SmallButton *>(button) != NULL)) + if (button->id < 100 && (dynamic_cast<SmallButton *>(button) != nullptr)) { - options->toggle(((SmallButton *) button)->getOption(), 1); + options->toggle(static_cast<SmallButton *>(button)->getOption(), 1); button->msg = options->getMessage(Options::Option::getItem(button->id)); } if (button->id == VIDEO_BUTTON_ID) |
