Compare pointers not contents.
Merge pull request #2709 from fluffyfreak/fixTerrainPtrCompare

Compare pointers not contents.