diff --git a/src/states_screens/dialogs/race_paused_dialog.cpp b/src/states_screens/dialogs/race_paused_dialog.cpp index 0a3365175..3d5c77f08 100644 --- a/src/states_screens/dialogs/race_paused_dialog.cpp +++ b/src/states_screens/dialogs/race_paused_dialog.cpp @@ -131,7 +131,8 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, if (!NetworkConfig::get()->isNetworking()) { getWidget("newrace")->setLabel(_("Setup New Game")); - getWidget("restart")->setLabel(_("Restart Battle")); + if (getWidget("restart")) + getWidget("restart")->setLabel(_("Restart Battle")); } getWidget("exit")->setLabel(_("Exit Battle")); } @@ -141,7 +142,8 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, if (!NetworkConfig::get()->isNetworking()) { getWidget("newrace")->setLabel(_("Setup New Race")); - getWidget("restart")->setLabel(_("Restart Race")); + if (getWidget("restart")) + getWidget("restart")->setLabel(_("Restart Race")); } getWidget("exit")->setLabel(_("Exit Race")); }