The provision in any law for a penalty or forfeiture for its violation shall not be construed to deprive an injured person of the right to recover from the offender damages sustained by reason of the violation of such law.