Skip to content

Commit

Permalink
fix: crash that happens when running with automated tests (#3331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImmutableJeffrey committed Nov 29, 2024
1 parent 93c1d80 commit 6d6102f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Source/Immutable/Private/Immutable/ImtblBlui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,18 @@ void UImtblBlui::OnLogEvent(const FString& LogText)
void UImtblBlui::WorldTickStart(UWorld* World, ELevelTick LevelTick, float X)
{
#if USING_BLUI_CEF
if (!GetBluEye()->IsBrowserLoading() && !bLoadedIndexJS)
if (UBluEye* BluEye = GetBluEye())
{
FString JavaScript;

IMTBL_LOG("BLUI CEF Browser loaded");
bLoadedIndexJS = true;
if (FImmutableUtilities::LoadGameBridge(JavaScript))
if (!BluEye->IsBrowserLoading() && !bLoadedIndexJS)
{
GetBluEye()->ExecuteJS(JavaScript);
FString JavaScript;

IMTBL_LOG("BLUI CEF Browser loaded");
bLoadedIndexJS = true;
if (FImmutableUtilities::LoadGameBridge(JavaScript))
{
BluEye->ExecuteJS(JavaScript);
}
}
}
#endif
Expand Down

0 comments on commit 6d6102f

Please sign in to comment.