properly forward UWorld::ServerTravel return value

This commit is contained in:
Marc Etter
2022-09-08 19:00:55 +02:00
parent fe76b60b2e
commit f760855494

View File

@@ -540,8 +540,7 @@ bool UAdvancedSessionsLibrary::ServerTravel(UObject* WorldContextObject, const F
UWorld* const World = GEngine->GetWorldFromContextObject(WorldContextObject, EGetWorldErrorMode::ReturnNull);
if (World)
{
World->ServerTravel(FURL, bAbsolute, bShouldSkipGameNotify);
return true;
return World->ServerTravel(FURL, bAbsolute, bShouldSkipGameNotify);
}
return false;