Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuh4 committed Jun 22, 2024
1 parent 65c01ac commit 37822dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Noir/Built-Ins/Services/GameSettingsService.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ end
---@param name SWGameSettingEnum
---@param value any
function Noir.Services.GameSettingsService:SetSetting(name, value)
if not self:GetSetting(name) then
if self:GetSetting(name) == nil then
Noir.Libraries.Logging:Error("GameSettingsService", "SetSetting(): %s is not a valid game setting.", false, name)
return
end
Expand Down

0 comments on commit 37822dc

Please sign in to comment.