mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +03: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:
1 parent
ce1e212317
commit
80db2f1d15
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user