mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-03 15:55:30 +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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user