The premature death of Pratap Singh Shah (reigned 1775–77), the eldest son of Prithvi Narayan Shah, left a huge power vacuum that remained unfilled, seriously debilitating the emerging Nepalese state. Pratap Singh Shah's successor was his son, Rana Bahadur Shah (reigned 1777–99), aged two and one-half years at his accession. The acting regent until 1785 was Queen Rajendra Lakshmi, followed by Bahadur Shah (reigned 1785–94), the second son of Prithvi Narayan Shah. Court life was consumed by rivalry centered on alignments with these two regents rather than on issues of national administration, and it set a bad precedent for future competition among contending regents. The exigencies of Sino-Nepalese War in 1788–92 had forced Bahadur Shah to temporarily take a pro-British stance, which had led to a commercial treaty with the British in 1792.