浏览代码

Fixed an error for areas with no actions

tags/v0.1.0
Fen Dweller 6 年前
父节点
当前提交
f4993e7bc2
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. +7
    -3
      world.js

+ 7
- 3
world.js 查看文件

@@ -54,12 +54,16 @@ function resetControls(state) {
actionButtons = [];

if (state.player.location) {
state.world[state.player.location].actions.forEach(action => {
actionButtons.push(undefined);
});
if (state.world[state.player.location].actions) {
state.world[state.player.location].actions.forEach(action => {
actionButtons.push(undefined);
});
}
}




}




正在加载...
取消
保存