Quantcast

Fix trying to GetPartyMember() on a raid member.(drycode)(ticket 6)

Erik L. Vonderscheer [01-26-11 - 06:52]
Fix trying to GetPartyMember() on a raid member.(drycode)(ticket 6)
Filename
TradeFilter3.lua
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index e64b371..5a323b3 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -264,14 +264,14 @@ function TF3:GetParty(arg)
 		if (numRaidMembers > 0 and #currentParty ~= numRaidMembers) then
 			TF3:WipeTable(TF3.currentPartyMembers)
 			for i=1, numRaidMembers, 1 do
-				local partyid = GetPartyMember(i)
+				local raidid = UnitInRaid(i)
 				local partymember = UnitName("raid"..i)
-				if (partymember and partyid and partymember ~= UNKNOWN) then
+				if (partymember and raidid and partymember ~= UNKNOWN) then
 					currentParty[i] = partymember
 					if (TF3.db.profile.debug) then
 						TF3:FindFrame(debugFrame, "|cFFFFFF80" .. partymember .. " " .. L["PADD"] .. "|r\n")
 					end
-				elseif (partymember == UNKNOWN or not partyid) then
+				elseif (partymember == UNKNOWN or not raidid) then
 					if (TF3.db.profile.debug) then
 						TF3:FindFrame(debugFrame, "|cFFFFFF80" .. L["MIPM"] .. "|r")
 					end