mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
ce1e212317
commit
80db2f1d15
1 changed files with 2 additions and 0 deletions
|
@ -4388,6 +4388,7 @@ void entityclass::updateentitylogic( int t )
|
||||||
{
|
{
|
||||||
if (t < 0 || t >= (int) entities.size())
|
if (t < 0 || t >= (int) entities.size())
|
||||||
{
|
{
|
||||||
|
puts("updateentitylogic() out-of-bounds!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4430,6 +4431,7 @@ void entityclass::entitymapcollision( int t )
|
||||||
{
|
{
|
||||||
if (t < 0 || t >= (int) entities.size())
|
if (t < 0 || t >= (int) entities.size())
|
||||||
{
|
{
|
||||||
|
puts("entitymapcollision() out-of-bounds!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue