Skip to content

Commit

Permalink
Wargroove - Fixed an issue where commander.json was never closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlySniper committed May 28, 2023
1 parent 238f8fc commit fc9aeb3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Binary file not shown.
Binary file modified assets_src/campaigns/campaign-c40a6e5b0cdf86ddac03b276691c483d.cmp
Binary file not shown.
1 change: 1 addition & 0 deletions assets_src/lua/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function Utils.getCommanderData()
return "commander_mercival", 0
end
local fileText = f:read("*all")
io.close(f)
local commanderData = json.parse(fileText)
return commanderData["commander"], commanderData["starting_groove"]
end
Expand Down

0 comments on commit fc9aeb3

Please sign in to comment.