kyranf / robotarmyfactorio

A mod to add robot troop units and perhaps associated support buildings and items to produce and control them.
MIT License
35 stars 11 forks source link

dev branch - getFirstValidSoldier cannot handle nil table input #50

Closed kyranf closed 8 years ago

kyranf commented 8 years ago

Check all uses of getFirstValidSoldier and see how/why we could be passing it an empty squad reference/table.

Check for empty input in the function too. If it fails to return, then the results which try to one-liner get the surface may not work. properly (will cause another error)

kyranf commented 8 years ago

seems to be fixed in 0.2.2