fixed crashing bug when calling RandomHex() too early

This commit is contained in:
2022-01-11 18:16:26 +01:00
parent 832507177f
commit 9021763ab7
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ void AAdventureCameraPawn::BeginPlay()
// The Viewport properties are inaccurate right after BeginPlay, so we need to wait a short time before saving them here.
FTimerHandle UnusedHandle;
GetWorldTimerManager().SetTimer(
UnusedHandle, this, &AAdventureCameraPawn::GetTheDamnViewport, 1.5, false);
UnusedHandle, this, &AAdventureCameraPawn::GetTheDamnViewport, 1, false);
}
void AAdventureCameraPawn::GetTheDamnViewport()