This seems unnecessary.  You copy mob_RaceClassSubrace, and then never use the original again.  Shouldn't you either use mob_RaceClassSubrace throughout or remove mob_RaceClassSubrace and use mob_race_array from the beginning?