From eb2f1558f2081ad72933f062dbbac51b1e1a18ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petri=20H=C3=A4kkinen?= Date: Sat, 4 Nov 2023 07:42:22 +0200 Subject: [PATCH] Fix missing else --- VM/src/ltm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VM/src/ltm.cpp b/VM/src/ltm.cpp index d305b11d..6ed42edd 100644 --- a/VM/src/ltm.cpp +++ b/VM/src/ltm.cpp @@ -129,7 +129,7 @@ const TString* luaT_objtypenamestr(lua_State* L, const TValue* o) if (ttisstring(type)) return tsvalue(type); } - if (ttislightuserdata(o)) + else if (ttislightuserdata(o)) { const TString* name = L->global->lightuserdataname[o->extra[0]];