v1.1.0: actually properly fixed rare crashes with special room spawning

This commit is contained in:
Evan Debenham 2021-12-02 17:09:41 -05:00
parent b1b887f264
commit 2ed7252be7

View File

@ -165,7 +165,7 @@ public abstract class SpecialRoom extends Room {
//60% chance for front of queue, 30% chance for next, 10% for one after that
int index = Random.chances(new float[]{6, 3, 1});
while (index > floorSpecials.size()) index--;
while (index >= floorSpecials.size()) index--;
Room r = Reflection.newInstance(floorSpecials.get( index ));