[z1878] Fix vendor items sold by vendor_template

(cleaned version of 9b3a398)

(based on commit [s1448] - e1a06b0)