Use common traits from stock object

Daniel Asher Resnick 2 years ago
parent 84d75695bf
commit d1eca924d8
  1. 2
      src/public/js/burning.js

@ -2316,7 +2316,7 @@ function setCommonTraits($scope, burningData){
if( $scope.selectedLifepaths.length == 0 ) if( $scope.selectedLifepaths.length == 0 )
return; return;
var common = $scope.selectedLifepaths[0].commonTraits; var common = burningData.stock_objs[$scope.stock].common_traits;
if(common.length > 0){ if(common.length > 0){
for(var j = 0; j < common.length; j++){ for(var j = 0; j < common.length; j++){
var name = common[j]; var name = common[j];

Loading…
Cancel
Save