Commit 775724e4e14801dbca7e14b969f019de3cf6f62a

henry 2004-10-11T01:55:52

Fixed a casting problem

diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
index 8fd1a7e..96fbd61 100644
--- a/src/FTVectoriser.cpp
+++ b/src/FTVectoriser.cpp
@@ -76,7 +76,6 @@ void FTMesh::AddPoint( const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUB
 FTGL_DOUBLE* FTMesh::Combine( const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 {
     tempPointList.push_back( FTPoint( x, y,z));
-//    return &tempPointList.back().X();
     return static_cast<FTGL_DOUBLE*>(tempPointList.back());
 }
 
@@ -212,8 +211,7 @@ void FTVectoriser::MakeMesh( FTGL_DOUBLE zNormal)
             
                 for( size_t p = 0; p < contour->PointCount(); ++p)
                 {
-                    FTPoint point = contour->Point(p);
-                    FTGL_DOUBLE* d = static_cast<FTGL_DOUBLE*>(point);
+                    FTGL_DOUBLE* d = (FTGL_DOUBLE*)(contour->Point(p)); // FIXME use c++ cast
                     gluTessVertex( tobj, d, d);
                 }