1
0

Fix LOAD/SAVE default slot

This commit is contained in:
otya128
2016-12-28 17:47:11 +09:00
parent d240a0b0d6
commit 8d96698310

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;