Fix LOAD/SAVE default slot

This commit is contained in:
otya128 committed 2016-12-28 17:47:11 +09:00
1 parent d240a0b0d6
commit 8d96698310
1 file changed
+2 -2
+2 -2
View File
@@ -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;