Cambiados los accesos a vector de .at a []

This commit is contained in:
2022-12-07 09:29:06 +01:00
parent 7adb049b37
commit c87e1e68a9
8 changed files with 208 additions and 208 deletions

View File

@@ -120,14 +120,14 @@ void HiScoreTable::render()
for (int i = numUsers; i < 10; ++i)
{
const int nameLenght = names.at(i - numUsers).length();
const int nameLenght = names[i - numUsers].length();
const int numDots = 20 - nameLenght;
std::string dots = "";
for (int j = 0; j < numDots; ++j)
{
dots = dots + ".";
}
const std::string line = names.at(i - numUsers) + dots + "0000000";
const std::string line = names[i - numUsers] + dots + "0000000";
text->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, (i * spaceBetweenLines) + spaceBetweenHeader, line, 1, orangeColor, 1, shdwTxtColor);
}
}