Fix empty location

This commit is contained in:
2025-01-03 23:42:53 +01:00
parent 331823e34f
commit 34e027525f

View File

@@ -73,7 +73,7 @@ function shared.Spotter.Init()
if not class then return string.format("Could not find class for unit %s", tostring(unit)) end
local location = Heimdall_Data.config.spotter.zoneOverride
if not location then
if not location or location == "" then
local zone = GetZoneText()
if not zone then return string.format("Could not find zone for unit %s", tostring(unit)) end
local subzone = GetSubZoneText()