diff --git a/common/script/fns/autoAllocate.js b/common/script/fns/autoAllocate.js index 71a4898031..7e29c3384e 100644 --- a/common/script/fns/autoAllocate.js +++ b/common/script/fns/autoAllocate.js @@ -56,11 +56,10 @@ function getStatToAllocate (user) { case 'taskbased': { suggested = _.invert(statsObj.training)[_.max(statsObj.training)]; - let training = statsObj.training; - training.str = 0; - training.int = 0; - training.con = 0; - training.per = 0; + user.stats.training.str = 0; + user.stats.training.int = 0; + user.stats.training.con = 0; + user.stats.training.per = 0; return suggested || 'str'; }