From 174552b7787170ba0bb079459054082a21ae17b0 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Tue, 14 Jun 2016 00:35:46 +0200 Subject: [PATCH] Protecting from gremlins --- MatchMaker.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/MatchMaker.lua b/MatchMaker.lua index 57e435a..40e92d2 100644 --- a/MatchMaker.lua +++ b/MatchMaker.lua @@ -300,6 +300,7 @@ function addon:MCMatchMaker(missionID,party,skipEpic,cap) end function addon:MatchMaker(missionID,party,includeBusy,useCap,currentCap) local mission=type(missionID)=="table" and missionID or self:GetMissionData(missionID) + if not mission then return 0 end missionID=mission.missionID if (not party) then party=addon:GetParty(missionID) end useCap=useCap or self:GetBoolean("MAXRES") -- 1.7.9.5