Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error/warnings in 5.5 #3

Open
puchik opened this issue Jan 4, 2025 · 0 comments · May be fixed by #4
Open

Compile error/warnings in 5.5 #3

puchik opened this issue Jan 4, 2025 · 0 comments · May be fixed by #4

Comments

@puchik
Copy link

puchik commented Jan 4, 2025

SubsystemCollection.GetSubsystemArray<TSubsystemClass>(); has been deprecated and throws an error when compiling in a 5.5 project.

warning C4996: 'FObjectSubsystemCollection<UGameStateSubsystem>::GetSubsystemArray': This function is unsafe for re-entrancy and has been deprecated. Use ForEachSubsystem or GetSubsystemArrayCopy instead Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.

In addition to the warning, this causes an error that points to the engine code and the project fails to compile. (Engine\Source\Runtime\Engine\Public\Subsystems\SubsystemCollection.h(213))

@puchik puchik linked a pull request Jan 4, 2025 that will close this issue
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 a pull request may close this issue.

1 participant