1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

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!
This commit is contained in:
Misa 2021-04-13 19:58:26 -07:00 committed by Ethan Lee
parent 7f55b0e887
commit 174e804c6b

View file

@ -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;
}