From 889b81edeccfbd43fec28afa3974ac4049a546db Mon Sep 17 00:00:00 2001 From: dpatti Date: Sun, 27 Nov 2011 03:51:51 -0500 Subject: [PATCH] Fixes searching for items that are only present in the guild bank --- BagSync_Search.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BagSync_Search.lua b/BagSync_Search.lua index 327e848..5c3835c 100644 --- a/BagSync_Search.lua +++ b/BagSync_Search.lua @@ -245,10 +245,10 @@ function bgSearch:DoSearch() local guildN = v.guild or nil --check the guild bank if the character is in a guild - if BagSyncGUILD_DB and guildN and BagSyncGUILD_DB[guildN] then + if BagSyncGUILD_DB and guildN and BagSyncGUILD_DB[currentRealm][guildN] then --check to see if this guild has already been done through this run (so we don't do it multiple times) if not previousGuilds[guildN] then - for q, r in pairs(BagSyncGUILD_DB[guildN]) do + for q, r in pairs(BagSyncGUILD_DB[currentRealm][guildN]) do local dblink, dbcount = strsplit(',', r) if dblink then local dName, dItemLink, dRarity = GetItemInfo(dblink) -- 1.7.9.5