 The Spanish army was ill-prepared.The officer corps was selected primarily on the basis of royal patronage, rather than merit.About a third of the junior officers had been promoted from the ranks, and while they did have talent they had few opportunities for promotion or leadership.