Skip to content

Commit

Permalink
fix: mistake in save migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
liana-p committed Jul 5, 2023
1 parent 34a3be1 commit 6de08af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/narrat/src/utils/save-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ function migrateSaveFile(saveFile: SaveFile) {
if (saveFile.version === '2.17.0') {
saveFile.slots.forEach((slot) => {
if (slot && slot.saveData) {
slot.saveData.config.gameCharacter = 'game';
slot.saveData.config.playerCharacter = 'player';
slot.saveData.config = {
gameCharacter: 'game',
playerCharacter: 'player',
};
}
});
saveFile.version = '3.2.3';
Expand Down

0 comments on commit 6de08af

Please sign in to comment.