From 8d9669831000dd5d66513e3d71e141a8acbc6a42 Mon Sep 17 00:00:00 2001 From: otya128 Date: Wed, 28 Dec 2016 17:47:11 +0900 Subject: [PATCH] Fix LOAD/SAVE default slot --- SMILEBASIC/builtinfunctions.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index 171f332..f7acdde 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -2269,7 +2269,7 @@ class BuiltinFunction } if(resname == "" || resname.indexOf("PRG") == 0) { - int lot = p.program.currentSlot; + int lot = 0/*always 0...?*/; if(resname != "" && resname != "PRG") { auto num = resname[3..$]; @@ -2301,7 +2301,7 @@ class BuiltinFunction { throw new IllegalFunctionCall("SAVE"/*, 1*/); } - auto slot = p.program.currentSlot; + auto slot = 0/*always 0...?*/; if (file.hasResourceNumber) { slot = file.resourceNumber;