From 9ed2cc168790506ce0aa31d208526be79e316f36 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sun, 26 Feb 2023 11:18:22 +0100 Subject: [PATCH] Bugfix file:read not reading anything without args --- Capy64/Runtime/Objects/FileHandle.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Capy64/Runtime/Objects/FileHandle.cs b/Capy64/Runtime/Objects/FileHandle.cs index 870cccd..a933ab0 100644 --- a/Capy64/Runtime/Objects/FileHandle.cs +++ b/Capy64/Runtime/Objects/FileHandle.cs @@ -191,6 +191,7 @@ public class FileHandle : IComponent if (nargs == 0) { L.PushString("l"); + nargs = 1; } for (int i = 2; i <= nargs + 1; i++)