The problem is only happen when i try login for the secound time
i think the problem is in this function
void UGameSparksStatics::LoginSucessDetails_Response(GameSparks::Core::GS & gs, const GameSparks::Api::Responses::AccountDetailsResponse & resp)
{
if (inicialized) {
if (!resp.GetHasErrors()) {
/***********************************************************************/
if (theWorld->GetGameInstance())
{
UStateManager *manager = Cast<UStateManager>(theWorld->GetGameInstance());
if (manager)
{
manager->ChangeState(EGameState::EServerScreen);
}
}
/****************************************************************************************/
else
{
if (GEngine) {
GEngine->AddOnScreenDebugMessage(-1, 2.f, FColor::MakeRandomColor(), TEXT("Accounts Details Request Fail"));
}
}
}
}
}
becouse i call a fuction like this the gameengine never crash
i think the gameparks don´t like when have change the gamestats
void UGameSparksStatics::LoginSucessDetails_Response(GameSparks::Core::GS & gs, const GameSparks::Api::Responses::AccountDetailsResponse & resp)
{
if (inicialized) {
if (!resp.GetHasErrors()) {
if (GEngine) {
GEngine->AddOnScreenDebugMessage(-1, 2.f, FColor::MakeRandomColor(),resp.GetJSONString().c_str());
}
else
{
if (GEngine) {
GEngine->AddOnScreenDebugMessage(-1, 2.f, FColor::MakeRandomColor(), TEXT("Accounts Details Request Fail"));
}
}
}
}
}