Choose a player at random - fixed that it wrongly choose same player (example: Scrambleverse, close #12679, close #13526);

Inniaz, the Gale Force - fixed that it wrongly choose left/right player (close #13526);
This commit is contained in:
Oleg Agafonov 2025-04-10 12:36:39 +04:00
parent 4ffb0ff014
commit dcdf0ca4a5
2 changed files with 32 additions and 2 deletions

View file

@ -82,8 +82,8 @@ public class CircularList<E> implements List<E>, Iterable<E>, Serializable {
*/
@Override
public E get(int index) {
if (list.size() > this.index) {
return list.get(this.index);
if (list.size() > index) {
return list.get(index);
}
return null;
}