|
_brothelList[i].CaptiveProstitutes.RemoveAt(y); |
I think this is a bug: it removes elements from a generic list while iterating over it.
It's been discussed here: https://stackoverflow.com/questions/1582285/how-to-remove-elements-from-a-generic-list-while-iterating-over-it
There are some other places that also use this way to modify a List.
CEEvents/Brothel/CEBrothelBehavior.cs
Line 1490 in 6c943a7
I think this is a bug: it removes elements from a generic list while iterating over it.
It's been discussed here: https://stackoverflow.com/questions/1582285/how-to-remove-elements-from-a-generic-list-while-iterating-over-it
There are some other places that also use this way to modify a List.