From 6a3bb72620ccefe316e9c011df5191f7a16f358c Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 27 Sep 2023 18:13:16 -0400 Subject: DRTVWR-589: Always check regtype to avoid unref error --- indra/newview/llluamanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp index 26e29a4ae1..c1e111f0ac 100644 --- a/indra/newview/llluamanager.cpp +++ b/indra/newview/llluamanager.cpp @@ -621,7 +621,7 @@ lua_function(listen_events) auto regtype{ lua_geti(L, LUA_REGISTRYINDEX, LUA_RIDX_MAINTHREAD) }; // Not finding the main thread at the documented place isn't a user error, // it's a Problem - llassert(regtype == LUA_TTHREAD); + llassert_always(regtype == LUA_TTHREAD); lua_State* mainthread{ lua_tothread(L, -1) }; // pop the main thread lua_pop(L, 1); -- cgit v1.2.3