could you post a chunk of the file with that line highlighted and with the unit sections either side included - it sounds as though the unit below that sprite line doesn't start properly with
type xxxx
but its hard to tell without seeing it.... Oh, and beware of comments between units that have lost their ;