Commit 897241d4 authored by Stefan Dähling's avatar Stefan Dähling

behavior fix

parent 0a6fb80a
......@@ -635,7 +635,7 @@ void Swarm_substation_behavior::determine_state(int neg_type)
power_sum = get_power_sum(NEGOTIATIONTYPE_P_INT, GROUPTYPE_SLACK_INT);
open_power_sum = get_open_power_sum(NEGOTIATIONTYPE_P_INT, GROUPTYPE_SLACK_INT);
internal_sum = knowledge_neg_internal_p.get_power();
knowledge_neg_internal_p.get_open_power();
internal_open_sum = knowledge_neg_internal_p.get_open_power();
power_sum.needed -= internal_sum.needed;
power_sum.optional -= internal_sum.optional;
open_power_sum.needed -= internal_open_sum.needed;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment