From f0525d6463ff495ec75772cf7512a53321a9229a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 30 Dec 2024 10:10:38 +0100 Subject: [PATCH] fix: Building issues with the web build --- lib/libimhex/source/api/content_registry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libimhex/source/api/content_registry.cpp b/lib/libimhex/source/api/content_registry.cpp index 311aac226..a8e3903a9 100644 --- a/lib/libimhex/source/api/content_registry.cpp +++ b/lib/libimhex/source/api/content_registry.cpp @@ -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;