This commit is contained in:
Crum
2018-05-31 23:48:09 -05:00
parent 17996e58ca
commit a7acd258b5
+11 -11
View File
@@ -267,18 +267,18 @@ end
local arrow local arrow
function GetPlayerFacing() function GetPlayerFacing()
if not arrow then if not arrow then
local obj = Minimap local obj = Minimap
for i = 1, obj:GetNumChildren() do for i = 1, obj:GetNumChildren() do
local child = select(i, obj:GetChildren()) local child = select(i, obj:GetChildren())
if child and child.GetModel and child:GetModel() == "Interface\\Minimap\\MinimapArrow" then if child and child.GetModel and child:GetModel() == "Interface\\Minimap\\MinimapArrow" then
arrow = child arrow = child
break break
end end
end end
end end
return arrow and arrow:GetFacing() return arrow and arrow:GetFacing()
end end
function ToggleFrame(frame) function ToggleFrame(frame)