From 1994d25f5fb8352e8226bb70b3f7eb7c62f7b582 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 23 May 2017 14:46:50 +0000 Subject: [PATCH] should stop crashing with print() before processes start running --- modules/base/header.lua | 2 +- modules/library/print.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/header.lua b/modules/base/header.lua index 4fe3dca..5e25ac8 100644 --- a/modules/base/header.lua +++ b/modules/base/header.lua @@ -1,4 +1,4 @@ -tT,p,C,T={},1,coroutine,table +tT,p,cT,C,T={},1,1,coroutine,table function E() if tT[cT] ~= nil then return tT[cT][3] end end diff --git a/modules/library/print.lua b/modules/library/print.lua index f27f84e..5eee2d4 100644 --- a/modules/library/print.lua +++ b/modules/library/print.lua @@ -1,6 +1,6 @@ function write(...) for k,v in pairs({...}) do - h("display",tostring(v),E().sI) + h("display",tostring(v),E().sI or 1) end end function print(...)