Skip to content

Commit

Permalink
fix: loading save data reference fix #255 (#272)
Browse files Browse the repository at this point in the history
* fix: #235

* fix(#255): VM object referenced from save
  • Loading branch information
PinkPenguin418 authored May 9, 2024
1 parent 4dc4025 commit d2cf05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/narrat/src/stores/vm-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const useVM = defineStore('vm', {
},
loadSaveData(data: VMSave) {
this.lastLabel = data.lastLabel;
this.data = data.data;
this.data = deepCopy(data.data);
this.findEntitiesInData(this.data);
},
loadGlobalSaveData(globalSave: Pick<GlobalGameSave, 'data'>) {
Expand Down

0 comments on commit d2cf05f

Please sign in to comment.