looking for wiring

I traced the melted wire back to the voltage regulator.it was melted the whole way back to where the wire splits for the firewall plug.Ireplaced the wire and the alternator and the wire is not getting hot at allso i dont know for sure what happened but the alternator seemed to fix it, but if its the regulator I got one of them too.