From d07baefaaad18a3b096c085855fc9038a5647ba1 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 25 Jul 2023 00:57:35 +1000 Subject: [PATCH] Update StarLuaConverters.hpp --- source/core/StarLuaConverters.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/StarLuaConverters.hpp b/source/core/StarLuaConverters.hpp index 3270d16..f476d2e 100644 --- a/source/core/StarLuaConverters.hpp +++ b/source/core/StarLuaConverters.hpp @@ -24,6 +24,7 @@ struct LuaConverter> : LuaConverter { } static LuaNullTermWrapper to(LuaEngine& engine, LuaValue const& v) { + auto enforcer = engine.nullTerminate(); return LuaConverter::to(engine, v); } };