Can't convert TObjectPtr<APlayerState> to APlayerState *

Hi.
I’m trying to migrate my project from Windows to Linux, both in UE 5.0.3, but when I try to compile in Linux I got an error:
*conditional expression is ambiguous; ‘TObjectPtr<APlayerState>’ can be converted to 'APlayerState ’ and vice versa

The sentence is:
PlayerState = GetPlayerState<APlayerState>();

It’s inside a class inheritance from APlayerController.

The sentence works fine in Windows but in Linux I got that error.

It’s a different compiler (Clang vs MSVC) so they sometimes give different errors.

You know that AController has a member PlayerState right? (See Controller.h)

It’s unusual to assign to it, normally it will be setup for you by the engine.

Or did you declare your own PlayerState variable ?

Yeah, you are right, removing that line compile the project, now the problem is that I lost all the assets, blueprint… don’t show in the editor. In all the asset the log says
Error: Package XXX.uasset has malformed tag

Solved too, I had to download lfs assets from github properly.

Thanks for the help! :smiley: