Fixed incorrect accounting for array length when checking which action to perform.
Fixed the incorrect variable passing within the flow menu to a select menu action.
Merge pull request #1384 from CorruptedHeart/FlowMenu

Fixed incorrect accounting for array length when checking which action t...