From 80db2f1d152944b1d63e5a0ffcb81fb0c7a59fa9 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 5 May 2020 13:55:12 -0700 Subject: [PATCH] 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. --- desktop_version/src/Entity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 4b000e75..b0979ede 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -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; }