Skip to content

Commit

Permalink
[qa] fix reputation target value not saved correctly, leading to wron…
Browse files Browse the repository at this point in the history
…g reputation & leaving workers on load
  • Loading branch information
nroutasuo committed Mar 26, 2023
1 parent 99f3e18 commit a21a2e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/components/sector/ReputationComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ define(['ash'], function (Ash) {
getCustomSaveObject: function () {
var copy = {};
copy.v = this.value;
copy.tv = this.targetValue;
return copy;
},

customLoadFromSave: function (componentValues) {
debugger
this.value = componentValues.v || 0;
this.targetValue = componentValues.tv || 0;
}

});
Expand Down

0 comments on commit a21a2e0

Please sign in to comment.