浏览代码

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


正在加载...
取消
保存