--- libgig/trunk/src/gig.cpp 2005/01/25 21:54:24 350 +++ libgig/trunk/src/gig.cpp 2005/01/29 14:24:11 352 @@ -1272,6 +1272,7 @@ } Sample* Region::GetSampleFromWavePool(unsigned int WavePoolTableIndex) { + if ((int32_t)WavePoolTableIndex == -1) return NULL; File* file = (File*) GetParent()->GetParent(); unsigned long soughtoffset = file->pWavePoolTable[WavePoolTableIndex]; Sample* sample = file->GetFirstSample();