Skip to content

Commit

Permalink
Fixed a bug where reloading tox file in blueprint editor crashes the …
Browse files Browse the repository at this point in the history
…editor
  • Loading branch information
UnrealXinda committed Dec 17, 2022
1 parent f15cdc3 commit b7e8086
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void UTouchEngineComponentBase::PostEditChangeProperty(FPropertyChangedEvent& Pr
if (IsValid(ToxAsset))
{
const UWorld* World = GetWorld();
if (!World->IsPlayInEditor())
if (!IsValid(World) || !World->IsPlayInEditor())
{
LoadTox();
}
Expand Down

0 comments on commit b7e8086

Please sign in to comment.