fixed crash when determening distance between players in different worlds (closes #772)