瀏覽代碼

FIX: Range get stoped use exception as termination case sentinel

tags/v1.0b1
父節點
當前提交
79bb675c94
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. +2
    -5
      src/net/hoo2/auth/labyrinth/Common.java

+ 2
- 5
src/net/hoo2/auth/labyrinth/Common.java 查看文件

@@ -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 */


Loading…
取消
儲存