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

@@ -65,7 +65,7 @@ int ItemTracker::findByName(std::string name)
{
return i;
}
++i;
i++;
}
return -1;
@@ -82,7 +82,7 @@ int ItemTracker::findByPos(int index, SDL_Point pos)
{
return i;
}
++i;
i++;
}
return -1;