If the department responsible for army salaries lacks funds, another department may temporarily provide money. The amount is then treated as a debt owed by one department to the other.
The ruler does not become personally liable for that debt. This is institutional liability rather than personal liability.