Skip to content

Commit

Permalink
fix ServiceClass:Load() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuh4 committed Jun 17, 2024
1 parent 2da072e commit 8044e71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Noir/Built-Ins/Classes/Service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ function Noir.Classes.ServiceClass:Load(index, default)

-- Load
local value = g_savedata.Noir.Services[self.Name][index]
return value ~= nil and value or default

if value == nil then
return default
end

return value
end

--[[
Expand Down
2 changes: 1 addition & 1 deletion src/Noir/Noir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
The current version of Noir.<br>
Follows [Semantic Versioning.](https://semver.org)
]]
Noir.Version = "1.7.1"
Noir.Version = "1.7.2"

--[[
This event is called when the framework is started.<br>
Expand Down

0 comments on commit 8044e71

Please sign in to comment.