Skip to content

Commit

Permalink
Merge pull request #25 from sgottelk/patch-1
Browse files Browse the repository at this point in the history
Fix broken ResetInteriorVariables
  • Loading branch information
Bob74 authored May 9, 2020
2 parents b6a1f6e + f4bf9ac commit ed6af93
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ Global = {
-- Set all interiors variables to false
-- The loop inside 'interiorIdObserver' will set them to true
ResetInteriorVariables = function()
for key, variable in pairs(Global.Biker) do variable = false end
for key, variable in pairs(Global.FinanceOffices) do variable = false end
for key, variable in pairs(Global.HighLife) do variable = false end
for _, parentKey in pairs{"Biker", "FinanceOffices", "HighLife"} do
local t = Global[parentKey]
for key in pairs(t) do
t[key] = false
end
end
end
}

Expand Down

0 comments on commit ed6af93

Please sign in to comment.