diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-09-27 18:13:16 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-09-27 18:13:16 -0400 |
commit | 6a3bb72620ccefe316e9c011df5191f7a16f358c (patch) | |
tree | 8759042902b67fa3c9b0014fc7478eb0a61e08db /indra/newview | |
parent | 70d8316da87b01a13781c829fee08e61931b1e37 (diff) |
DRTVWR-589: Always check regtype to avoid unref error
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llluamanager.cpp | 2 |
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); |