From df361a10b0f52167ca5e75090d03208f1aa66f1e Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Sun, 26 Oct 2014 10:55:29 +0100 Subject: [PATCH] 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. --- TomTom_POIIntegration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 1.7.9.5