What happens if a person dies while his or her lawsuit is pending?

The law allows the executor of the estate to continue the lawsuit on behalf of the heirs as if the accident victim were still alive.  If the negligence caused the death, then Texas law allows certain family members to pursue their own claim.  This is called a wrongful death action.