Skip to content

Fixed bug where m_initCount was set to 0 after initialization#786

Open
ITR13 wants to merge 1 commit intorlabrecque:masterfrom
ITR13:master
Open

Fixed bug where m_initCount was set to 0 after initialization#786
ITR13 wants to merge 1 commit intorlabrecque:masterfrom
ITR13:master

Conversation

@ITR13
Copy link
Copy Markdown

@ITR13 ITR13 commented May 7, 2026

Just encountered a bug where I was calling SteamAPI.Init() in RuntimeInitializeLoadType.AfterAssembliesLoaded, and InitOnPlayMode ended up overwriting the m_initCount value, despite it being in a build and me not having domain reload on.

This PR essentially just ensures it only tries to do it in editor, and I added some code to ensure it only happens if the developer has DisableDomainReload enabled, since that's the purpose that was listed in the comment.

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.

1 participant