Permalink
Browse files

fixed: logic error

  • Loading branch information...
1 parent 1d99e8b commit ec7cd423109e8e56e509c12a0da61d571eb523a8 spiff committed May 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 xbmc/addons/GUIWindowAddonBrowser.cpp
@@ -305,16 +305,16 @@ bool CGUIWindowAddonBrowser::GetDirectory(const CStdString& strDirectory,
int i=0;
while (i < items.Size())
{
- if (FilterVar(g_settings.m_bAddonForeignFilter,
+ if (!FilterVar(g_settings.m_bAddonForeignFilter,
items[i]->GetProperty("Addon.Language"), "en") ||
- FilterVar(g_settings.m_bAddonForeignFilter,
+ !FilterVar(g_settings.m_bAddonForeignFilter,
items[i]->GetProperty("Addon.Language"),
g_langInfo.GetLanguageLocale()))
{
- items.Remove(i);
+ i++;
}
else
- i++;
+ items.Remove(i);
}
}
}

0 comments on commit ec7cd42

Please sign in to comment.