This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up stack after script_get_backtrace (#7854)
script_get_backtrace() was leaving its return value on the stack, corrupting subsequent lua operations for functions that did not immediately return. This problem can specifically be observed in the case of multiple "groupcaps" entries, each of which provides the legacy "maxwear" property. These cause a backtrace and thus pollute the stack for the following lua_next() call.
- Loading branch information
Showing 1 changed file with 3 additions and 1 deletion.