Fix crash when pausing during grand prix
This commit is contained in:
parent
8124079d6c
commit
2f98a011d4
@ -131,6 +131,7 @@ RacePausedDialog::RacePausedDialog(const float percentWidth,
|
|||||||
if (!NetworkConfig::get()->isNetworking())
|
if (!NetworkConfig::get()->isNetworking())
|
||||||
{
|
{
|
||||||
getWidget<IconButtonWidget>("newrace")->setLabel(_("Setup New Game"));
|
getWidget<IconButtonWidget>("newrace")->setLabel(_("Setup New Game"));
|
||||||
|
if (getWidget<IconButtonWidget>("restart"))
|
||||||
getWidget<IconButtonWidget>("restart")->setLabel(_("Restart Battle"));
|
getWidget<IconButtonWidget>("restart")->setLabel(_("Restart Battle"));
|
||||||
}
|
}
|
||||||
getWidget<IconButtonWidget>("exit")->setLabel(_("Exit Battle"));
|
getWidget<IconButtonWidget>("exit")->setLabel(_("Exit Battle"));
|
||||||
@ -141,6 +142,7 @@ RacePausedDialog::RacePausedDialog(const float percentWidth,
|
|||||||
if (!NetworkConfig::get()->isNetworking())
|
if (!NetworkConfig::get()->isNetworking())
|
||||||
{
|
{
|
||||||
getWidget<IconButtonWidget>("newrace")->setLabel(_("Setup New Race"));
|
getWidget<IconButtonWidget>("newrace")->setLabel(_("Setup New Race"));
|
||||||
|
if (getWidget<IconButtonWidget>("restart"))
|
||||||
getWidget<IconButtonWidget>("restart")->setLabel(_("Restart Race"));
|
getWidget<IconButtonWidget>("restart")->setLabel(_("Restart Race"));
|
||||||
}
|
}
|
||||||
getWidget<IconButtonWidget>("exit")->setLabel(_("Exit Race"));
|
getWidget<IconButtonWidget>("exit")->setLabel(_("Exit Race"));
|
||||||
|
Loading…
Reference in New Issue
Block a user