mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: Potential crash when loading null values from settings
This commit is contained in:
@@ -163,6 +163,8 @@ namespace hex {
|
||||
|
||||
if (setting.is_number() && defaultValue.is_boolean())
|
||||
setting = setting.get<int>() != 0;
|
||||
if (setting.is_null())
|
||||
setting = defaultValue;
|
||||
|
||||
return setting;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user