The influence of resonance decays on the pT spectra from heavy-ion collisions