関数内でローカル変数やグローバル変数にアクセスできなかった問題を修正,BGFILL,SPCHK,SPVARなど実装

This commit is contained in:
otya128 committed 2015-08-29 16:23:41 +09:00
1 parent d05166a3b9
commit 4525728dd5
8 files changed
+215 -34

No files matched your search

+1 -1
View File
@@ -706,7 +706,7 @@ class GosubExpr : Code
{
Value label;
vm.pop(label);
if(!label.isString)
if(label.isString)
{
vm.push(Value(vm.pc));
vm.pc = vm.globalLabel[label.castString] - 1;