mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix obscure crash possibility (call stack found), some clarification
This commit is contained in:
parent
9a2ca4836a
commit
1bd7da221b
3 changed files with 2 additions and 4 deletions
|
@ -1420,7 +1420,7 @@ void GameSettingsScreen::dialogFinished(const Screen *dialog, DialogResult resul
|
|||
}
|
||||
|
||||
void GameSettingsScreen::RecreateViews() {
|
||||
oldSettingInfo_ = settingInfo_->GetText();
|
||||
oldSettingInfo_ = settingInfo_ ? settingInfo_->GetText() : "N/A";
|
||||
UIScreen::RecreateViews();
|
||||
}
|
||||
|
||||
|
|
|
@ -74,8 +74,6 @@ private:
|
|||
UI::EventReturn OnConfirmClick(UI::EventParams ¶ms);
|
||||
UI::EventReturn OnChoiceClick(UI::EventParams ¶ms);
|
||||
|
||||
SettingInfoMessage *settingInfo_ = nullptr;
|
||||
|
||||
bool initialSetup_;
|
||||
bool storageBrowserWorking_;
|
||||
bool done_ = false;
|
||||
|
|
|
@ -1114,5 +1114,5 @@ void SettingInfoMessage::Draw(UIContext &dc) {
|
|||
}
|
||||
|
||||
std::string SettingInfoMessage::GetText() const {
|
||||
return showing_ && text_ ? text_->GetText() : "";
|
||||
return (showing_ && text_) ? text_->GetText() : "";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue