Skip to content

Commit a863d98

Browse files
committed
fix: custom field numbers
Nil check when collecting the existing automatically named custom field numbers. #1041
1 parent d784fb9 commit a863d98

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/field/CustomFieldManager.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ function CustomFieldManager:getNewFieldNumber()
7272
local name = entry:getName()
7373
if name:startsWith("CP-") then
7474
local n = entry:getFieldNumber()
75-
numbers[n] = true
75+
if n then
76+
numbers[n] = true
77+
end
7678
end
7779
end
7880
local ix = 1

0 commit comments

Comments
 (0)