Update intra_part.h

Bugfix in weight function. It was returning not the weight value.