diff --git a/Content/Levels/Test/Other/Dialogue/DT_Test_DialogueMain.uasset b/Content/Levels/Test/Other/Dialogue/DT_Test_DialogueMain.uasset index 291ba3c..5eeb972 100644 Binary files a/Content/Levels/Test/Other/Dialogue/DT_Test_DialogueMain.uasset and b/Content/Levels/Test/Other/Dialogue/DT_Test_DialogueMain.uasset differ diff --git a/Source/Lost_Edge/Private/CustomGameInstanceBase.cpp b/Source/Lost_Edge/Private/CustomGameInstanceBase.cpp index cd8c1c2..80f1941 100644 --- a/Source/Lost_Edge/Private/CustomGameInstanceBase.cpp +++ b/Source/Lost_Edge/Private/CustomGameInstanceBase.cpp @@ -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); }