Attempted fix for issue in TomTom_POIIntegration
Jim Whitehead [10-26-14 - 09:55]
Attempted fix for issue in TomTom_POIIntegration
There may still be an issue with floors, please provide clear and direct
bug reports if you're able to reproduce a Lua error.
diff --git a/TomTom_POIIntegration.lua b/TomTom_POIIntegration.lua
index 796f0ca..f27ca90 100755
--- a/TomTom_POIIntegration.lua
+++ b/TomTom_POIIntegration.lua
@@ -36,7 +36,7 @@ local function ObjectivesChanged()
local map, floor = GetCurrentMapAreaID()
local floors = astrolabe:GetNumFloors(map)
- floor = floor and floor or (floors == 0 and 0 or 1)
+ floor = (floors == 0 and 0 or 1)
local px, py = GetPlayerMapPosition("player")