summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-27 18:13:16 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-27 18:13:16 -0400
commit6a3bb72620ccefe316e9c011df5191f7a16f358c (patch)
tree8759042902b67fa3c9b0014fc7478eb0a61e08db
parent70d8316da87b01a13781c829fee08e61931b1e37 (diff)
DRTVWR-589: Always check regtype to avoid unref error
-rw-r--r--indra/newview/llluamanager.cpp2
1 files changed, 1 insertions, 1 deletions
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);