Fixed bug in workaround for game bug
I previously used `string.match()` which is not available in-game, but during testing I had another addon active that made this function available, which is why I did not catch this. Closes #5 Closes #6
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@
|
||||
LEVELRANGE_NAME = "LevelRange"
|
||||
|
||||
-- Version Number
|
||||
LEVELRANGE_VERSION = "2.0.6";
|
||||
LEVELRANGE_VERSION = "2.0.7";
|
||||
|
||||
-- Details
|
||||
Details = {
|
||||
@@ -383,7 +383,7 @@ function LevelRange_WorldMapButton_OnUpdate(arg1)
|
||||
lLR_OldUpdate(arg1);
|
||||
|
||||
local areaNameRaw = WorldMapFrame.areaName or "";
|
||||
local areaNameTrimmed = string.match(areaNameRaw, "^%s*(.-)%s*$"); -- 2.0.6: Added code to trim whitespace to deal with patch 1.18 bug for Northwind zone: In-game name contains trailing space 'Northwind '.
|
||||
local _, _, areaNameTrimmed = string.find(areaNameRaw, "^%s*(.-)%s*$"); -- 2.0.7: Fixed code added in 2.0.6 to trim whitespace to deal with patch 1.18 bug for Northwind zone: In-game name contains trailing space 'Northwind '.
|
||||
local zoneNum = GetCurrentMapZone();
|
||||
|
||||
-- Zone name equivalence map
|
||||
|
||||
Reference in New Issue
Block a user