diff --git a/components/esmterrain/storage.cpp b/components/esmterrain/storage.cpp index 0795a3ffc..1811f58e6 100644 --- a/components/esmterrain/storage.cpp +++ b/components/esmterrain/storage.cpp @@ -28,8 +28,8 @@ namespace ESMTerrain osg::Vec2f origin = center - osg::Vec2f(size/2.f, size/2.f); - assert(origin.x == (int) origin.x()); - assert(origin.y == (int) origin.y()); + assert(origin.x() == (int) origin.x()); + assert(origin.y() == (int) origin.y()); int cellX = static_cast(origin.x()); int cellY = static_cast(origin.y());