From 5309a1a27018495b5d10db5c5dc19a00c0c6d98a Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 21 Sep 2024 19:28:46 +0100 Subject: Fix vm_goto_step --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index e168a47..53e7792 100644 --- a/rules.js +++ b/rules.js @@ -3638,9 +3638,9 @@ function vm_endif() { function vm_goto_step(step) { console.log('vm_goto_step called, target:', step) - console.log('game.vp.ip', game.vp.ip) - for (let i = game.vp.ip; i < CODE[game.vm.fp].length; i++) { - console.log('game.vp.ip', game.vp.ip) + console.log('game.vm.ip', game.vp.ip) + for (let i = game.vm.ip; i < CODE[game.vm.fp].length; i++) { + console.log('game.vm.ip', game.vm.ip) if (CODE[game.vm.fp][i][0] === step) { game.vm.ip = i; vm_exec(); @@ -6441,7 +6441,7 @@ states.vm_malta_summit = { else { log('Summit failed') //game.phase++ - vm_goto_step(' vm_permanently_remove ') + vm_goto_step('vm_permanently_remove') } }, /*done() { -- cgit v1.2.3