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

Crash because of World not valid when using level streamings #10

Open
mado-xr opened this issue Apr 20, 2021 · 0 comments
Open

Crash because of World not valid when using level streamings #10

mado-xr opened this issue Apr 20, 2021 · 0 comments

Comments

@mado-xr
Copy link

mado-xr commented Apr 20, 2021

I used the ocean project in a level and wanted to switch to another scene which doesn't have the ocean in it so I put both scenes in a level and switched the level visibility.
However when I switch from the level who has the ocean to the level who doesn't have the ocean it crashes because the world is not valid.

Here is the fix I made:
InifiniteSystemComponent.cpp
Added in line 109:

	//Prevents crash if world not existing (in streaming level transition)
	if (World == nullptr) return;

OceanManager.cpp
Added in line 40:
if (World == nullptr) return 0.1f;

WeatherDataPlugin.cpp
Added in line 29:

	// Check if World is valid first
	if (!World) return;
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

No branches or pull requests

1 participant