diff --git a/src/osgPlugins/3ds/readwrite.cpp b/src/osgPlugins/3ds/readwrite.cpp index 3f0d3aede..f73eb6921 100644 --- a/src/osgPlugins/3ds/readwrite.cpp +++ b/src/osgPlugins/3ds/readwrite.cpp @@ -373,7 +373,7 @@ Lib3dsBool lib3ds_intb_write(Lib3dsIntb b, iostream *strm) { ASSERT(strm); - strm->write((const char*)b,1); + strm->write((const char*)&b,1); if (strm->fail()) { return(LIB3DS_FALSE); }