Skip to content

Remove the occupied static modifier from being used again and lua fix - #2347

Merged
schombert merged 2 commits into
schombert:mainfrom
ZombieFreak115:remove-occupied-mod-and-fix-lua
Nov 5, 2026
Merged

schombert merged 2 commits into
schombert:mainfrom
ZombieFreak115:remove-occupied-mod-and-fix-lua

Conversation

@ZombieFreak115

Copy link
Copy Markdown
Contributor

Remove occupied modifier from being used again cos its too unbalanced

Move the scenario lua init further up in function call. It was accidentially left below the LLVM block, which meant in MP or linux it did not get initialized properly

Call lua_close on state destruct if it was init previously (not nullptr). Not needed when playing the game, but nice to clean up each lua state if multiple scenarios are being created within a single session.

ZombieFreak115 and others added 2 commits November 4, 2026 17:45
Prevent lua state from not being initialized properly if it's in MP or linux
Call close_lua on state destruct
@schombert
schombert merged commit 7edcdc5 into schombert:main Nov 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants