Skip to content

Commit 79eb09c

Browse files
committed
sanity check
1 parent b526e42 commit 79eb09c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/GlobalEventSystem/Private/GESHandler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,11 @@ void FGESHandler::EmitToListenersWithData(const FGESPropertyEmitContext& EmitDat
398398
}
399399

400400
UWorld* World = EmitData.WorldContext->GetWorld();
401+
if (!World->IsValidLowLevelFast())
402+
{
403+
UE_LOG(LogTemp, Error, TEXT("FGESHandler::EmitToListenersWithData: Emitted event has no world!"));
404+
return;
405+
}
401406

402407
//Attach a world listener to each unique world
403408
if (!WorldMap.Contains(World))

0 commit comments

Comments
 (0)