- Timestamp:
- 10/01/09 22:19:42 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/DrawElementsUInt.cpp
r7648 r10600 35 35 // Write array length and its elements. 36 36 out->writeInt(size()); 37 out->writeCharArray((const char*)&front(), size() * INTSIZE);37 if (size()!=0) out->writeCharArray((const char*)&front(), size() * INTSIZE); 38 38 } 39 39 … … 56 56 int size = in->readInt(); 57 57 resize(size); 58 i n->readCharArray((char*)&front(), size * INTSIZE);58 if (size!=0) in->readCharArray((char*)&front(), size * INTSIZE); 59 59 60 60 if (in->_byteswap)
