Animatedsprite ya no permite indices fuera de rango

This commit is contained in:
2022-09-25 13:00:39 +02:00
parent 66840ebf11
commit 8a4d2a541d
18 changed files with 79 additions and 71 deletions

View File

@@ -115,7 +115,7 @@ void Credits::fillTexture()
for (auto t:texts)
{
text->write(0, i * size, t);
++i;
i++;
}
SDL_SetRenderTarget(renderer, nullptr);
@@ -134,7 +134,7 @@ void Credits::update()
checkEventHandler();
// Incrementa el contador
++counter;
counter++;
// Comprueba si ha terminado la sección
if (counter > 1000)