Răsfoiți Sursa

build on windows

David Rose 21 ani în urmă
părinte
comite
767edc78d7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      panda/src/gobj/qpgeomVertexReader.cxx

+ 1 - 1
panda/src/gobj/qpgeomVertexReader.cxx

@@ -384,7 +384,7 @@ get_data3f(const unsigned char *pointer) {
   // We sneakily cast a float[3] array to an LVecBase3f reference,
   // We sneakily cast a float[3] array to an LVecBase3f reference,
   // making all kinds of assumptions about how an LVecBase3f is
   // making all kinds of assumptions about how an LVecBase3f is
   // stored.
   // stored.
-  return (LVecBase3f &)(float *)pointer;
+  return *(LVecBase3f *)pointer;
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////