Explorar el Código

FIX: Range get stoped use exception as termination case sentinel

tags/v1.0b1
padre
commit
79bb675c94
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. +2
    -5
      src/net/hoo2/auth/labyrinth/Common.java

+ 2
- 5
src/net/hoo2/auth/labyrinth/Common.java Ver fichero

@@ -172,12 +172,9 @@ class Range {
* @return The first item of the range or Const.noTileId if there is none.
*/
int get () {
try {
if (!numbers.isEmpty())
return numbers.remove(0);
}
catch (IndexOutOfBoundsException e) {
return Const.noTileId;
}
return Const.noTileId;
}

/** @name protected data types */


Cargando…
Cancelar
Guardar