fixed breaking nill check (#51)

Co-authored-by: dutchie032 <dutchie032>
This commit is contained in:
2025-06-01 20:11:59 +02:00
committed by GitHub
co-authored by dutchie032 <dutchie032>
parent b17883b15b
commit 4c59f55dea
2 changed files with 4 additions and 0 deletions
Binary file not shown.
+4
View File
@@ -205,6 +205,10 @@ function CapBase:CheckAndScheduleCAP()
countPerStage[supposedZone] = 0
end
if requiredPerStage[supposedZone] == nil then
requiredPerStage[supposedZone] = 0
end
if countPerStage[supposedZone] < requiredPerStage[supposedZone] then
local triggerZone = self.database:GetCapZoneForZoneID(supposedZone)
if triggerZone then