Fix ttl = nil
This commit is contained in:
@@ -13,6 +13,7 @@ function shared.MinimapTagger.Init()
|
|||||||
---@param ttl number?
|
---@param ttl number?
|
||||||
local function PlantFrame(x, y, frame, scale, ttl)
|
local function PlantFrame(x, y, frame, scale, ttl)
|
||||||
scale = scale or 1
|
scale = scale or 1
|
||||||
|
ttl = ttl or 1
|
||||||
local w, h = BattlefieldMinimap:GetSize()
|
local w, h = BattlefieldMinimap:GetSize()
|
||||||
w, h = w * BattlefieldMinimap:GetEffectiveScale(), h * BattlefieldMinimap:GetEffectiveScale()
|
w, h = w * BattlefieldMinimap:GetEffectiveScale(), h * BattlefieldMinimap:GetEffectiveScale()
|
||||||
local maxSize = w > h and w or h
|
local maxSize = w > h and w or h
|
||||||
|
|||||||
Reference in New Issue
Block a user