X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fvertex3d.cpp;h=2bc305c524f5624146bd3e92d6d15cc759b50c87;hb=4f049544ec827a9f1f16a913d7241f29179fdde7;hp=649bc56e3f458d6a9d0510774cfaad8ff6c3c83a;hpb=41a6ad96e81a8d8153c54877c4c12f61100677a9;p=guile-irrlicht.git diff --git a/src/vertex3d.cpp b/src/vertex3d.cpp index 649bc56..2bc305c 100644 --- a/src/vertex3d.cpp +++ b/src/vertex3d.cpp @@ -26,6 +26,7 @@ #include "vector2d.h" #include "vector3d.h" #include "vertex3d.h" +#include "wrapped.h" using namespace irr; @@ -45,7 +46,7 @@ video_S3DVertex_make (SCM position, SCM video_S3DVertex_Pos (SCM vertex) { - video::S3DVertex* s3dvertex = (video::S3DVertex*) scm_to_pointer (vertex); + video::S3DVertex* s3dvertex = (video::S3DVertex*) scm_to_irr_pointer (vertex); return scm_from_vector3df (s3dvertex->Pos); } @@ -59,7 +60,7 @@ init_vertex3d (void) video::E_VERTEX_TYPE scm_to_vertex_type (SCM vertex_type) { - char* type = scm_to_utf8_stringn (scm_symbol_to_string (vertex_type), NULL); + char* type = scm_to_utf8_string (scm_symbol_to_string (vertex_type)); if (!strcmp (type, "standard")) { return video::EVT_STANDARD;