There was a bug report 5 months ago talking about this exact same problem but it's happening again, I'll give a bit more information this time though:
Error while running event robotarmy::on_tick (ID 0)
robotarmy/robolib/Squad.lua:658: attempt to perform arithmetic on field '?' (a nil value)
Edit: Sorry for putting this in general, didn't realize my mistake until after I posted and I don't know how to fix it.