diff --git a/Mesh/meshGFace.cpp b/Mesh/meshGFace.cpp
index b13b22125f84c0c067a66bb157ef5e6d7fef3bd1..548b445be1e63c21c22420852b1775c2b8b02a70 100644
--- a/Mesh/meshGFace.cpp
+++ b/Mesh/meshGFace.cpp
@@ -2481,7 +2481,7 @@ void orientMeshGFace::operator()(GFace *gf)
           SPoint2 p;
           // FIXME: use inexact reparam because some vertices might not be
           // exactly on the surface after the 3D Delaunay
-          bool ok = reparamMeshVertexOnFace(e->getVertex(j), gf, p, false);
+          ok = reparamMeshVertexOnFace(e->getVertex(j), gf, p, false);
           if(!ok) break;
           param += p;
         }