Issue Getting Steam UID

nevermind, foudn the issue i think. dont knwo why it would of worked at all now that i think about it. The intermittent thing had me thrown for a loop. it was checking a steam user before init… stupid mistake on my part.



	if (SteamAPI_Init()) {

		if (SteamUser() == nullptr)
			return "nullptr";

		CSteamID steamID = SteamUser()->GetSteamID();

		uint64 Return = steamID.CSteamID::ConvertToUint64();

		//Return ID as String if Found
		return FString::FromInt(Return);
	}

	return "Unknown";
}


Fixed it by putting the null pointer check inside the if(SteamAPI_Init())