1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Add out-of-bounds puts() to updateentitylogic and entitymapcollision

Due to the previous commit, these will no longer be regularly taking in
out-of-bounds entity indices. Or at least they shouldn't, so I'm putting
in these print statements here on the off-chance that they do.
This commit is contained in:
Misa 2020-05-05 13:55:12 -07:00 committed by Ethan Lee
parent ce1e212317
commit 80db2f1d15

View file

@ -4388,6 +4388,7 @@ void entityclass::updateentitylogic( int t )
{
if (t < 0 || t >= (int) entities.size())
{
puts("updateentitylogic() out-of-bounds!");
return;
}
@ -4430,6 +4431,7 @@ void entityclass::entitymapcollision( int t )
{
if (t < 0 || t >= (int) entities.size())
{
puts("entitymapcollision() out-of-bounds!");
return;
}