Browse Source

FIX: Range get stoped use exception as termination case sentinel

tags/v1.0b1
parent
commit
79bb675c94
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/net/hoo2/auth/labyrinth/Common.java

+ 2
- 5
src/net/hoo2/auth/labyrinth/Common.java View File

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


/** @name protected data types */ /** @name protected data types */


Loading…
Cancel
Save