Skip to content

Commit

Permalink
Debugger: Lua - Fixed a crash when using coroutines that was caused b…
Browse files Browse the repository at this point in the history
…y customizations that were previously done to Lua's code
  • Loading branch information
SourMesen committed Dec 22, 2023
1 parent 9ce627a commit 6b9af14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lua/lstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ LUA_API lua_State *lua_newthread (lua_State *L) {
L1->hookmask = L->hookmask;
L1->basehookcount = L->basehookcount;
L1->hook = L->hook;
// ##### MESEN MODIFICATION #####
L1->watchdoghook = NULL;
L1->watchdogtimer = 0;
// ##### MESEN MODIFICATION #####
resethookcount(L1);
/* initialize L1 extra space */
memcpy(lua_getextraspace(L1), lua_getextraspace(g->mainthread),
Expand Down

0 comments on commit 6b9af14

Please sign in to comment.