Bugfix file:read not reading anything without args

This commit is contained in:
Alessandro Proto 2023-02-26 11:18:22 +01:00
parent eb58bdda14
commit 9ed2cc1687

View file

@ -191,6 +191,7 @@ public class FileHandle : IComponent
if (nargs == 0) if (nargs == 0)
{ {
L.PushString("l"); L.PushString("l");
nargs = 1;
} }
for (int i = 2; i <= nargs + 1; i++) for (int i = 2; i <= nargs + 1; i++)