aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2008-04-17 17:16:52 +0000
committerJohannes Schickel2008-04-17 17:16:52 +0000
commit75641c405e01df1dbceaca2038fe3c4c95c39dc5 (patch)
tree21041d004e2e5728f8bdae363a009bdb8b9ef956 /engines/kyra
parent7f881d0be1e9e11d2c84c1e0d4ccc771513d2dce (diff)
downloadscummvm-rg350-75641c405e01df1dbceaca2038fe3c4c95c39dc5.tar.gz
scummvm-rg350-75641c405e01df1dbceaca2038fe3c4c95c39dc5.tar.bz2
scummvm-rg350-75641c405e01df1dbceaca2038fe3c4c95c39dc5.zip
Fixed gcc warning.
svn-id: r31543
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/resource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index ce8a67845d..8b07b50a6c 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -682,13 +682,13 @@ bool ResLoaderTlk::loadFile(const Common::String &filename, Common::SeekableRead
entry.preload = false;
entry.prot = false;
- uint32 filename = stream.readUint32LE();
- uint32 offset = stream.readUint32LE();
+ uint32 resFilename = stream.readUint32LE();
+ uint32 resOffset = stream.readUint32LE();
- entry.offset = offset+4;
+ entry.offset = resOffset+4;
char realFilename[20];
- snprintf(realFilename, 20, "%.08u.AUD", filename);
+ snprintf(realFilename, 20, "%.08u.AUD", resFilename);
uint32 curOffset = stream.pos();
stream.seek(entry.offset+2, SEEK_SET);