diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-30 18:22:59 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | 0f50b753f41d035dc5c9e799cc2aa061a547d38e (patch) | |
tree | 1f84f467a8f015c55cf2b7bfd92c3f329bceba1a /rules.js | |
parent | 2a870a0df343cd07858631232d5793bc44d2ae35 (diff) | |
download | andean-abyss-0f50b753f41d035dc5c9e799cc2aa061a547d38e.tar.gz |
Fix Riverines crash if impossible.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9753,7 +9753,7 @@ CODE[69 * 2 + 0] = [ [ vm_endspace ], [ vm_endif ], [ vm_prompt, "Select destination Department." ], - [ vm_space, true, 1, 1, (s)=>(s !== game.vm.m[0]) && is_within_adjacent_depts(s, game.vm.m[0], 3) && can_stack_any(s, game.current) ], + [ vm_space, true, 1, 1, (s)=>game.vm.m && (s !== game.vm.m[0]) && is_within_adjacent_depts(s, game.vm.m[0], 3) && can_stack_any(s, game.current) ], [ vm_if, ()=>game.current === GOVT ], [ vm_prompt, "Move cubes to destination." ], [ vm_piece, true, 0, 999, (p,s)=>(s === game.vm.m[0]) && is_cube(p) && can_stack_any(s, GOVT) ], |