modtools/create-unit: checked for args.civId ~= -1

develop
expwnent 2016-02-20 19:00:47 -05:00
parent 420eb5341b
commit d1073a35d6
1 changed files with 1 additions and 1 deletions

@ -437,7 +437,7 @@ end
local civ_id local civ_id
if args.civId == '\\LOCAL' then if args.civId == '\\LOCAL' then
civ_id = df.global.ui.civ_id civ_id = df.global.ui.civ_id
elseif args.civId and tonumber(args.civId) then elseif args.civId and tonumber(args.civId) and tonumber(args.civId) ~= -1 then
civ_id = tonumber(args.civId) civ_id = tonumber(args.civId)
end end