From 6f3960d2c2d8b595784f7af2eb96d0144bcedba4 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 23 Jun 2021 01:52:39 +0200 Subject: [PATCH] final commit for the fix to linux lua - fix #27 --- src/TLuaFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TLuaFile.cpp b/src/TLuaFile.cpp index b520dcd..dd1d472 100644 --- a/src/TLuaFile.cpp +++ b/src/TLuaFile.cpp @@ -819,6 +819,7 @@ void TLuaArg::PushArgs(lua_State* State) { } else if (Type == typeid(double)) { lua_pushnumber(State, std::any_cast(arg)); } else { + // if this happens, implement a sane behavior for that value error("what in the hell is " + std::string(arg.type().name())); } }