diff --git a/src/tenor/java/tenor/QuantizedTaskPriorityAllocationCache.java b/src/tenor/java/tenor/QuantizedTaskPriorityAllocationCache.java index 5ec20e547..531ce56c7 100644 --- a/src/tenor/java/tenor/QuantizedTaskPriorityAllocationCache.java +++ b/src/tenor/java/tenor/QuantizedTaskPriorityAllocationCache.java @@ -45,7 +45,7 @@ public abstract class QuantizedTaskPriorityAllocationCache extends QuantizedTask Allocation alloc = new Allocation(amount); List children = childTasks(); if (children.size() < 2) { - return new Allocation(amount).distributeEqually(); // 0 or 1 cannot be anything but equal distribution + return alloc.distributeEqually(); // 0 or 1 cannot be anything but equal distribution } double[] costs = new double[children.size()]; for (int i = 0; i < costs.length; i++) {