fix minor seek bug

This commit is contained in:
Glenn Maynard
2004-01-22 04:41:56 +00:00
parent d4db5d35f9
commit 9c1b88cce6
+4 -1
View File
@@ -72,7 +72,10 @@ int SoundReader_Preload::SetPosition_Accurate(int ms)
position = sample * samplesize;
if(position >= int(buf.get().size()))
position = 0;
{
position = buf.get().size();
return 0;
}
return position;
}