Anthony Flack #1 DrWho, what you should do in future is this:If terrain<>0 then terrain=0:freeentity(terrain)Nice 'n' safe.