aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2002-10-21 12:34:54 +0000
committerMax Horn2002-10-21 12:34:54 +0000
commit31c773923ee34e05c06a7c00b784b924eff526fb (patch)
treeb2d1e5e7aa5fff558b314162651f3c365ba61b2b /scumm
parent46a3039f701dd40e2347d4c5090e0a3c74489a37 (diff)
downloadscummvm-rg350-31c773923ee34e05c06a7c00b784b924eff526fb.tar.gz
scummvm-rg350-31c773923ee34e05c06a7c00b784b924eff526fb.tar.bz2
scummvm-rg350-31c773923ee34e05c06a7c00b784b924eff526fb.zip
use File::size() method were it makes sense; one small change to simon.cpp based on comment on bug #595813
svn-id: r5210
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp3
1 files changed, 1 insertions, 2 deletions
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;