max faction rank crashfix

This commit is contained in:
scrawl 2012-05-21 05:19:20 +02:00
parent 1079bb2677
commit 40c52c5d09

View file

@ -487,7 +487,7 @@ void StatsWindow::updateSkillArea()
text += std::string("#DDC79E") + faction->name; text += std::string("#DDC79E") + faction->name;
text += std::string("\n#BF9959") + faction->ranks[it->second]; text += std::string("\n#BF9959") + faction->ranks[it->second];
if (it->second < 10) if (it->second < 9)
{ {
// player doesn't have max rank yet // player doesn't have max rank yet
text += std::string("\n\n#DDC79E#{sNextRank} ") + faction->ranks[it->second+1]; text += std::string("\n\n#DDC79E#{sNextRank} ") + faction->ranks[it->second+1];