Skip to content

Clear gamerules pointer on level shutdown#1755

Merged
peace-maker merged 2 commits intoalliedmodders:masterfrom
Mikusch:clear-gamerules-ptr
Apr 22, 2022
Merged

Clear gamerules pointer on level shutdown#1755
peace-maker merged 2 commits intoalliedmodders:masterfrom
Mikusch:clear-gamerules-ptr

Conversation

@Mikusch
Copy link
Contributor

@Mikusch Mikusch commented Apr 21, 2022

As discussed in #1694, this PR fixes an issue where the gamerules pointer would not be cleared on level shutdown, leading to crashes when natives like TF2_IsHolidayActive try to access it before it's populated again.

@peace-maker peace-maker merged commit a877a44 into alliedmodders:master Apr 22, 2022
@Mikusch Mikusch deleted the clear-gamerules-ptr branch April 22, 2022 09:57
psychonic pushed a commit that referenced this pull request Jun 11, 2022
* Clear gamerules pointer on level shutdown

* Move LevelShutdown up

(cherry picked from commit a877a44)
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