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,9 +235,15 @@ 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;
default: break;
case kNextDestId:
flow_idx = (p->cur_idx + 1) % p->netN;
break;
default:
assert(0); assert(0);
} }