diff --git a/src/osgPlugins/ive/ConvexPlanarOccluder.cpp b/src/osgPlugins/ive/ConvexPlanarOccluder.cpp index f44f1ccd7..92f203ec5 100644 --- a/src/osgPlugins/ive/ConvexPlanarOccluder.cpp +++ b/src/osgPlugins/ive/ConvexPlanarOccluder.cpp @@ -59,8 +59,8 @@ void ConvexPlanarOccluder::read(DataInputStream* in){ // Read ConvexPlanarOccluder's properties // Read planar polygon occluder. - osg::ConvexPlanarPolygon* cpp = &getOccluder(); - ((ive::ConvexPlanarPolygon*)(cpp))->read(in); + osg::ConvexPlanarPolygon* occluder = &getOccluder(); + ((ive::ConvexPlanarPolygon*)(occluder))->read(in); // Read hole list. int size = in->readInt(); diff --git a/src/osgPlugins/ive/Image.cpp b/src/osgPlugins/ive/Image.cpp index e0358e8c4..f7a896971 100644 --- a/src/osgPlugins/ive/Image.cpp +++ b/src/osgPlugins/ive/Image.cpp @@ -59,9 +59,9 @@ void Image::write(DataOutputStream* out) out->writeInt(getModifiedCount()); // Write mipmapdata vector - int size = _mipmapData.size(); - out->writeInt(size); - for(int i=0;iwriteInt(mipmapsize); + for(int i=0;iwriteInt(_mipmapData[i]); // Write image data if any diff --git a/src/osgPlugins/ive/ProxyNode.cpp b/src/osgPlugins/ive/ProxyNode.cpp index 181a4331c..97a21e75a 100644 --- a/src/osgPlugins/ive/ProxyNode.cpp +++ b/src/osgPlugins/ive/ProxyNode.cpp @@ -155,10 +155,10 @@ void ProxyNode::read(DataInputStream* in) // Read ProxyNode's identification. id = in->readInt(); // If the osg class is inherited by any other class we should also read this from file. - osg::Node* node = dynamic_cast(this); - if(node) + osg::Node* nodePtr = dynamic_cast(this); + if(nodePtr) { - ((ive::Node*)(node))->read(in); + ((ive::Node*)(nodePtr))->read(in); } else in_THROW_EXCEPTION("ProxyNode::read(): Could not cast this osg::ProxyNode to an osg::Node.");