From 174e804c6b1802a023aa866325e2f3634f9dedef Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 13 Apr 2021 19:58:26 -0700 Subject: [PATCH] Fix wrong variable being bounds-checked when collecting trinket I was working on another PR, and spotted this. This is a GIANT whoops moment right here! --- desktop_version/src/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 0b42bae1..d0e565b6 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -2584,7 +2584,7 @@ bool entityclass::updateentities( int i ) if (entities[i].state == 1) { music.playef(4); - if (INBOUNDS_ARR(entities[i].para, customcollect)) + if (INBOUNDS_ARR(entities[i].para, collect)) { collect[(int) entities[i].para] = true; }