Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Mar 24, 2018
1 parent f3f8f58 commit 4c507ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game/scripts/mod_loader/modapi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function modApi:addSquadTrue(squad,name,desc,icon)
table.insert(self.mod_squads,squad)
table.insert(self.squad_text,name)
table.insert(self.squad_text,desc)
table.insert(self.squad_icon,icon)
table.insert(self.squad_icon,icon or "resources/mods/squads/unknown.png")
end

function modApi:addSquad(id,squad,desc,icon)
Expand Down
2 changes: 1 addition & 1 deletion game/scripts/sdlext/squadselector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function modApi.selectSquads()
labelcount:caption(count.."/"..maxselected)
end

for i=1,#modApi.squad_icon do
for i=1,#modApi.mod_squads do
local col = (i-1) % 2
local row = math.floor((i-1) / 2)

Expand Down

0 comments on commit 4c507ae

Please sign in to comment.