Reward Points Paypal bugg

I altered the script to give the reward points in processed status but it does not work with paypal even after the status is changed no points are given, I wonder if this is an actual bug and not anything I have done wrong?

As you can see in the file “addons/reward_points/func.php”, function fn_reward_points_change_order_status,

near the line 287

PHP Code:

if ($status_to == ‘C’ && $points_info[‘is_gain’] == ‘N’ && !empty($points_info[‘reward’])) {

// increase rewarded points