From 31c773923ee34e05c06a7c00b784b924eff526fb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 21 Oct 2002 12:34:54 +0000 Subject: use File::size() method were it makes sense; one small change to simon.cpp based on comment on bug #595813 svn-id: r5210 --- scumm/sound.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index fc5fcca168..2d8a065d72 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -1300,8 +1300,7 @@ int Sound::getCachedTrack(int track) { mad_frame_finish(&frame); mad_stream_finish(&stream); // Get file size - file->seek(0, SEEK_END); - _mp3_size[current_index] = file->pos(); + _mp3_size[current_index] = file->size(); _mp3_tracks[current_index] = file; return current_index; -- cgit v1.2.3