Closed jeffgoku closed 3 years ago
When there are invalid commands in the command list, add new command after those invalid commands will throw IndexOutOfRangeException
Actually, I've noticed that we don't need that for loop at all. I'm already checking for duplicate commands in the previous for loop and we don't have to remove invalid commands in AddCommand function.
When there are invalid commands in the command list, add new command after those invalid commands will throw IndexOutOfRangeException