Skip to content

Commit

Permalink
check for nullptr cause tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MjnMixael committed Aug 28, 2024
1 parent 0e614ea commit 90b1614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/graphics/software/NVGFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ static auto FontScaleFactor __UNUSED = options::OptionBuilder<float>("Game.FontS
.finish();

void removeFontMultiplierOption() {
options::OptionsManager::instance()->removeOption(FontScaleFactor);
const auto opt = options::OptionsManager::instance();
if (opt != nullptr) {
opt->removeOption(FontScaleFactor);
}
}

namespace
Expand Down

0 comments on commit 90b1614

Please sign in to comment.