mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 04:31:34 -10:00
This will ensure that Lua functions will always be executed in the correct Lua state. Since we now have multiple threads (which are different lua_State objects) it is possible that the current code could execute a Lua function in the main state instead of the thread that is currently executing. This can lead to weird behavior and probably also to issues inside Lua.