Skip to content

Commit

Permalink
PopupMultiChoiceDynamic: Check that valueStr_ isn't null before writi…
Browse files Browse the repository at this point in the history
…ng to it. Don't see how this happened.
  • Loading branch information
hrydgard committed May 4, 2023
1 parent a132b72 commit 3148a8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Common/UI/PopupScreens.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ class PopupMultiChoiceDynamic : public PopupMultiChoice {

protected:
void PostChoiceCallback(int num) override {
*valueStr_ = choices_[num];
if (valueStr_) {
*valueStr_ = choices_[num];
}
}

private:
Expand Down

0 comments on commit 3148a8a

Please sign in to comment.