Fix a CTD while iterating over a changing set.
Fix a CTD while iterating over a changing set.

steveschnepp/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc,pmprog/OpenApoc,steveschnepp/OpenApoc,Istrebitel/OpenApoc