Skip to content

Commit

Permalink
fix: Building issues with the web build
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Dec 30, 2024
1 parent e22424f commit f0525d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libimhex/source/api/content_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ namespace hex {
if (!s_settings.isValid())
return;

const auto &settingsData = *s_settings;

// During a crash settings can be empty, causing them to be overwritten.
if (settingsData.empty()) {
return;
Expand Down

0 comments on commit f0525d6

Please sign in to comment.