Skip to content

Commit 203a0ea

Browse files
committed
Fix predefined area error
1 parent 0065afe commit 203a0ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

files/capture.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,11 @@ function Capture:StartCapturing()
770770

771771
self:StartCapturingAreaScan(topLeft, bottomRight, captureGridSize, outputPixelScale, captureDelay)
772772
else
773+
---@type fun():Vec2, Vec2
773774
local predefinedAreaFunction = Config.CaptureArea[area]
774775
if predefinedAreaFunction then
775-
local predefinedArea = predefinedAreaFunction()
776-
self:StartCapturingAreaScan(predefinedArea.TopLeft, predefinedArea.BottomRight, captureGridSize, outputPixelScale, captureDelay)
776+
local topLeft, bottomRight = predefinedAreaFunction()
777+
self:StartCapturingAreaScan(topLeft, bottomRight, captureGridSize, outputPixelScale, captureDelay)
777778
else
778779
Message:ShowRuntimeError("PredefinedArea", string.format("Unknown predefined capturing area %q", tostring(area)))
779780
end

0 commit comments

Comments
 (0)