Fix ttl = nil

This commit is contained in:
2025-01-09 15:24:42 +01:00
parent 43b08f22dd
commit 059f917acc

View File

@@ -13,6 +13,7 @@ function shared.MinimapTagger.Init()
---@param ttl number?
local function PlantFrame(x, y, frame, scale, ttl)
scale = scale or 1
ttl = ttl or 1
local w, h = BattlefieldMinimap:GetSize()
w, h = w * BattlefieldMinimap:GetEffectiveScale(), h * BattlefieldMinimap:GetEffectiveScale()
local maxSize = w > h and w or h