Bugfixing

- Fixed some bug a GetRPForNextRank() and GetRPForPreviousRank()
Merge remote-tracking branch 'origin/heromaster' into development