Fixed issue 6119.

This commit is contained in:
Jordan Woyak 2013-03-27 14:25:48 -05:00
parent 6fe5f5a6ba
commit 507f53e226
1 changed files with 7 additions and 7 deletions

View File

@ -211,10 +211,10 @@ std::string GameListItem::GetCompany() const
return m_company;
}
// (-1 = Japanese, 0 = English, etc)
// (-1 = Japanese, 0 = English, etc)?
std::string GameListItem::GetDescription(int _index) const
{
const u32 index = _index + 1;
const u32 index = _index;
if (index < m_descriptions.size())
return m_descriptions[index];
@ -225,10 +225,10 @@ std::string GameListItem::GetDescription(int _index) const
return "";
}
// (-1 = Japanese, 0 = English, etc)
// (-1 = Japanese, 0 = English, etc)?
std::string GameListItem::GetVolumeName(int _index) const
{
u32 const index = _index + 1;
u32 const index = _index;
if (index < m_volume_names.size() && !m_volume_names[index].empty())
return m_volume_names[index];
@ -239,10 +239,10 @@ std::string GameListItem::GetVolumeName(int _index) const
return "";
}
// (-1 = Japanese, 0 = English, etc)
// (-1 = Japanese, 0 = English, etc)?
std::string GameListItem::GetBannerName(int _index) const
{
u32 const index = _index + 1;
u32 const index = _index;
if (index < m_names.size() && !m_names[index].empty())
return m_names[index];
@ -253,7 +253,7 @@ std::string GameListItem::GetBannerName(int _index) const
return "";
}
// (-1 = Japanese, 0 = English, etc)
// (-1 = Japanese, 0 = English, etc)?
std::string GameListItem::GetName(int _index) const
{
// Prefer name from banner, fallback to name from volume, fallback to filename