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:
parent
fe0ab0418b
commit
4dc7e27ee6
11 changed files with 24 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue