aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-04-24 04:43:37 +0000
committerTravis Howell2006-04-24 04:43:37 +0000
commit7f0fdde6d473726a8da5aa4f0e5aa14c1dc0783e (patch)
treec20840b7f167df4274d6a5c5452cb1d0d6dd8a65 /engines
parent1dd84a90bd3e1f5b655a2226964d99e733e73ebc (diff)
downloadscummvm-rg350-7f0fdde6d473726a8da5aa4f0e5aa14c1dc0783e.tar.gz
scummvm-rg350-7f0fdde6d473726a8da5aa4f0e5aa14c1dc0783e.tar.bz2
scummvm-rg350-7f0fdde6d473726a8da5aa4f0e5aa14c1dc0783e.zip
Remove duplicate variable in readGamePcText()
svn-id: r22131
Diffstat (limited to 'engines')
-rw-r--r--engines/simon/res.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/simon/res.cpp b/engines/simon/res.cpp
index e4ac479e7b..103eb772af 100644
--- a/engines/simon/res.cpp
+++ b/engines/simon/res.cpp
@@ -253,15 +253,14 @@ void SimonEngine::loadGamePcFile() {
}
void SimonEngine::readGamePcText(Common::File *in) {
- uint text_size;
byte *text_mem;
- _textSize = text_size = in->readUint32BE();
- text_mem = (byte *)malloc(text_size);
+ _textSize = in->readUint32BE();
+ text_mem = (byte *)malloc(_textSize);
if (text_mem == NULL)
error("Out of text memory");
- in->read(text_mem, text_size);
+ in->read(text_mem, _textSize);
setupStringTable(text_mem, _stringTabNum);
}