From 5408388e040479e57cc5fc64054470bd8b414071 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 16 Sep 2014 18:49:03 +0200 Subject: [PATCH] Supplement a default value in case the frame for whatever reason does not have a top point --- BonusRollPreview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BonusRollPreview.lua b/BonusRollPreview.lua index 67accc4..3680d14 100644 --- a/BonusRollPreview.lua +++ b/BonusRollPreview.lua @@ -92,7 +92,7 @@ local function HookStartRoll(self, frame) end local function PositionDownwards() - return (GetScreenHeight() - BonusRollFrame:GetTop()) < 345 + return (GetScreenHeight() - (BonusRollFrame:GetTop() or 200)) < 345 end local collapsed -- 1.7.9.5