FConstControllerIterator fail

The FConstControllerIterator is failing…

it confusing the controller type.

I Know i have two APlayerControllers

But the iterator give me a APlayerControllers and a AIController (I have not spawned any AIController) in fact i think the AIController is actualy the host controller.

Basicly i did this…

for (FConstControllerIterator It = World->GetControllerIterator(); It;  ++It)
{		
		if (const AController *Controller = 
                Cast<AController>(*It))
		{
                message::Error(Controller->GetName());
        }
}

I don’t know what to say…


NOTE: the level is empty, i have nothing in there


This work well

for (FConstPlayerControllerIterator It = World->GetPlayerControllerIterator(); It; ++It)

but this way break the logic of my component… :frowning:

Today it works…
I don’t know what happened yesterday.
Yesterday I turned off my computer and today it works.

This certainly doesn’t give me much confidence.

I don’t know what I can expect from something like this.