Skip to content

Commit

Permalink
fix: logic flaw that crashed some scripts
Browse files Browse the repository at this point in the history
Mostly Flight's. Sorry!
  • Loading branch information
Torwent committed Jul 14, 2024
1 parent 01087d2 commit f9e5acf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion utils/config.simba
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ begin
if not acceptNull then
Exit(Self.getBoolean(key));

Result := Self.has(key) and not Self.isNull(key) and Self.getBoolean(key);
Result := (Self <> nil) and Self.has(key) and not Self.isNull(key) and Self.getBoolean(key);
end;

function TJSONObject.put(key: string; Value: Boolean): TJSONObject; constref; override;
Expand Down
3 changes: 3 additions & 0 deletions utils/settings.simba
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ end;
var
WLSettings: TWLSettings;

procedure TSRL.Setup(); override;
begin
WLSettings.Setup('wasplib');

inherited;
end;

0 comments on commit f9e5acf

Please sign in to comment.