From 85f56111edde8e03eca38e9bf984d43cb88a68c2 Mon Sep 17 00:00:00 2001 From: CryHam Date: Tue, 15 Sep 2015 22:02:17 +0200 Subject: [PATCH] fix mph gui crash --- source/ogre/Gui_Events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ogre/Gui_Events.cpp b/source/ogre/Gui_Events.cpp index 83f60be3e..410254288 100644 --- a/source/ogre/Gui_Events.cpp +++ b/source/ogre/Gui_Events.cpp @@ -219,8 +219,8 @@ void CGui::comboRewind(CMB) pSet->gui.rewind_type = val; } -void CGui::radKmh(WP wp){ Radio2(bRkmh, bRmph, true); pSet->show_mph = false; hud->Size(); app->scn->pace->UpdTxt(); } -void CGui::radMph(WP wp){ Radio2(bRkmh, bRmph, false); pSet->show_mph = true; hud->Size(); app->scn->pace->UpdTxt(); } +void CGui::radKmh(WP wp){ Radio2(bRkmh, bRmph, true); pSet->show_mph = false; hud->Size(); if (app->scn->pace) app->scn->pace->UpdTxt(); } +void CGui::radMph(WP wp){ Radio2(bRkmh, bRmph, false); pSet->show_mph = true; hud->Size(); if (app->scn->pace) app->scn->pace->UpdTxt(); } void CGui::setSimMode(std::string mode) {