From 8547c56ba4607e1c4efac483f97f01b8ba8c3a01 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 24 Jul 2023 23:37:55 +1000 Subject: Proper LuaString <-> String handling Null-terminator usage is opt-in --- source/game/scripting/StarWorldLuaBindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/game/scripting/StarWorldLuaBindings.cpp') diff --git a/source/game/scripting/StarWorldLuaBindings.cpp b/source/game/scripting/StarWorldLuaBindings.cpp index 6d1648e..087f88c 100644 --- a/source/game/scripting/StarWorldLuaBindings.cpp +++ b/source/game/scripting/StarWorldLuaBindings.cpp @@ -1421,7 +1421,7 @@ namespace LuaBindings { return {}; } - Maybe WorldEntityCallbacks::entityPortrait(World* world, EntityId entityId, String const& portraitMode) { + LuaNullTermWrapper> WorldEntityCallbacks::entityPortrait(World* world, EntityId entityId, String const& portraitMode) { auto entity = world->entity(entityId); if (auto portraitEntity = as(entity)) { @@ -1471,7 +1471,7 @@ namespace LuaBindings { return Json(); } - Maybe WorldEntityCallbacks::entityUniqueId(World* world, EntityId entityId) { + LuaNullTermWrapper> WorldEntityCallbacks::entityUniqueId(World* world, EntityId entityId) { if (auto entity = world->entity(entityId)) return entity->uniqueId(); return {}; -- cgit v1.2.3