cwFlowCross.cpp: Fixed missing 'break' in _get_flow_index().

This commit is contained in:
kevin 2021-12-27 20:27:05 -05:00
parent 22e1222742
commit d30a112cae

View File

@ -235,8 +235,14 @@ namespace cw
switch( destId ) switch( destId )
{ {
case kCurDestId: flow_idx = p->cur_idx; break; case kCurDestId:
case kNextDestId: flow_idx = (p->cur_idx + 1) % p->netN; flow_idx = p->cur_idx;
break;
case kNextDestId:
flow_idx = (p->cur_idx + 1) % p->netN;
break;
default: default:
assert(0); assert(0);