fix warning
don't crash when an empty base is attacked

needs to improved, though