修复粘贴错误任务代码崩溃

This commit is contained in:
MrZ626
2020-10-13 00:16:40 +08:00
parent 92c80e075d
commit e89a4c682d

View File

@@ -264,8 +264,12 @@ function pasteMission(str)
end end
else else
if _>=34 and _<=114 then if _>=34 and _<=114 then
ins(mission,reg) if missionEnum[reg]then
reg=_-33 ins(mission,reg)
reg=_-33
else
return
end
elseif _>=115 and _<=126 then elseif _>=115 and _<=126 then
for i=1,_-113 do for i=1,_-113 do
ins(mission,reg) ins(mission,reg)