From 8159b3847025e91d9f24b82cde60c519cae608f0 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Wed, 18 Jan 2023 12:23:37 +0100 Subject: [PATCH] QoL --- Capy64/LuaRuntime/Libraries/Term.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Capy64/LuaRuntime/Libraries/Term.cs b/Capy64/LuaRuntime/Libraries/Term.cs index a1d3a82..d1e5662 100644 --- a/Capy64/LuaRuntime/Libraries/Term.cs +++ b/Capy64/LuaRuntime/Libraries/Term.cs @@ -286,7 +286,9 @@ internal class Term : IPlugin private static int L_Write(IntPtr state) { var L = Lua.FromIntPtr(state); - var str = L.ToString(1); + string str = ""; + if(!L.IsNone(1)) + str = L.ToString(1); Write(str);