by dimkadimon » Fri Nov 26, 2010 3:49 am
The code does not look slow to me. Perhaps it is crashing when helper_id is still -1 after the second for loop. This happens when no suitable helper planet is found, in which case you should not call IssueOrder().