Fixed crash when creating new character.
Added sqrt(Perc*Cook) softcap in charwnd.