Fix generation of wares in market

Cause: QMap.values() passes its result by copy, not by reference.