Core/Trade: Correction of distance checking
Merge pull request #11945 from Dehravor/trade

Core/Trade: Correction of distance checking