From a7acd258b511178ca289c48fe1889cf9a9089bef Mon Sep 17 00:00:00 2001 From: Crum Date: Thu, 31 May 2018 23:48:09 -0500 Subject: [PATCH] fix tabs --- !Compatibility/api/wowAPI.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/!Compatibility/api/wowAPI.lua b/!Compatibility/api/wowAPI.lua index ffc2932..f4de94c 100644 --- a/!Compatibility/api/wowAPI.lua +++ b/!Compatibility/api/wowAPI.lua @@ -267,18 +267,18 @@ end local arrow function GetPlayerFacing() - if not arrow then - local obj = Minimap - for i = 1, obj:GetNumChildren() do - local child = select(i, obj:GetChildren()) - if child and child.GetModel and child:GetModel() == "Interface\\Minimap\\MinimapArrow" then - arrow = child - break - end - end - end + if not arrow then + local obj = Minimap + for i = 1, obj:GetNumChildren() do + local child = select(i, obj:GetChildren()) + if child and child.GetModel and child:GetModel() == "Interface\\Minimap\\MinimapArrow" then + arrow = child + break + end + end + end - return arrow and arrow:GetFacing() + return arrow and arrow:GetFacing() end function ToggleFrame(frame)