Mercurial > wow > itemauditor
changeset 56:8afc1ac9bf58
Fixed bug 17
| author | Asa Ayers <Asa.Ayers@Gmail.com> | 
|---|---|
| date | Fri, 23 Jul 2010 06:56:22 -0700 | 
| parents | 234896be4087 | 
| children | 9cb0bc93ed11 | 
| files | Modules/Options.lua | 
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] | 
line wrap: on
 line diff
--- a/Modules/Options.lua Thu Jul 22 23:17:57 2010 -0700 +++ b/Modules/Options.lua Fri Jul 23 06:56:22 2010 -0700 @@ -50,7 +50,10 @@ function addon:GetSelectedChatWindow() if not selectedWindow then - selectedWindow = _G["ChatFrame"..self:GetChatWindowIndex()] + local index = self:GetChatWindowIndex() + if index then + selectedWindow = _G["ChatFrame"..index] + end end if (selectedWindow) then return selectedWindow
