So im trying make custom tick and iterate through all player controllers from within the GameMode. I did the following, but the engine crashes when trying to start the “for” cycle
BeginPlay:
GetWorld()->GetTimerManager().SetTimer(CustomTickTimerHandle, this, &AIgoraGameMode::CustomTick, TickFrequency, true);
CustomTick:
for(FConstPlayerControllerIterator Iterator = GetWorld()->GetPlayerControllerIterator(); Iterator; ++Iterator)