If a ruler died without direct heir, his state  lapsed  into British hands.
If a ruler died with no successor, the state was given to Britain.
If a ruler died without an heir, a new one was just selected.