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)
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)