save fix
This commit is contained in:
parent
346f2b22ef
commit
4037fe3f1a
Binary file not shown.
@ -113,8 +113,12 @@ void UCustomGameInstanceBase::SaveGame(FName checkpointName)
|
||||
saveData->checkpoint = checkpointName;
|
||||
if(player->leftPocketItem)
|
||||
saveData->playerLeftPocketItem = player->leftPocketItem->GetFName();
|
||||
else
|
||||
saveData->playerLeftPocketItem = FName(TEXT(""));
|
||||
if(player->rightPocketItem)
|
||||
saveData->playerRightPocketItem = player->rightPocketItem->GetFName();
|
||||
else
|
||||
saveData->playerRightPocketItem = FName(TEXT(""));
|
||||
|
||||
UGameplayStatics::SaveGameToSlot(saveData, TEXT("Save"), 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user