Merge pull request #16 from ThaumRystra/bugfix-encumberance-meter-swapping

Change character reference to be reactive based on the active, undestroyed template
This commit is contained in:
Stefan Zermatten
2015-10-09 08:58:53 +02:00

View File

@@ -24,7 +24,7 @@ Template.carryCapacityBar.onCreated(function() {
var self = this;
self.carriedFraction = new ReactiveVar(0);
self.autorun(function() {
self.carriedFraction.set(getFractionCarried(self.data));
self.carriedFraction.set(getFractionCarried(Template.currentData()));
});
});