Oh sory i forgot that .. you can either comment out this line, or you can put
entity* ent_terrain;

before this action. I use this so i can easily get access to the terrain entity in functions.