1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-14 20:05:16 +00:00

Fix some more warnings

This commit is contained in:
Valentin Ochs 2017-01-14 18:23:53 +01:00
parent fe0ab0418b
commit 4dc7e27ee6
11 changed files with 24 additions and 29 deletions

View file

@ -281,12 +281,9 @@ void BitmapText::onUpdate(float dt)
Vector BitmapText::getColorIndex(size_t i, size_t j)
{
Vector c(1,1,1);
if (!(i < 0 || j < 0))
if ( i < colorIndices.size() && j < colorIndices[i].size())
{
if ( i < colorIndices.size() && j < colorIndices[i].size())
{
c = colorIndices[i][j];
}
c = colorIndices[i][j];
}
return c;
}