--- libgig/trunk/src/DLS.cpp 2007/04/11 16:33:56 1154 +++ libgig/trunk/src/DLS.cpp 2007/04/11 18:11:09 1155 @@ -494,6 +494,8 @@ } // add the new loop pNewLoops[SampleLoops] = *pLoopDef; + // auto correct size field + pNewLoops[SampleLoops].Size = sizeof(DLS::sample_loop_t); // free the old array and update the member variables if (SampleLoops) delete[] pSampleLoops; pSampleLoops = pNewLoops;