diff options
author | Travis Howell | 2006-04-24 04:43:37 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-24 04:43:37 +0000 |
commit | 7f0fdde6d473726a8da5aa4f0e5aa14c1dc0783e (patch) | |
tree | c20840b7f167df4274d6a5c5452cb1d0d6dd8a65 /engines/simon | |
parent | 1dd84a90bd3e1f5b655a2226964d99e733e73ebc (diff) | |
download | scummvm-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/simon')
-rw-r--r-- | engines/simon/res.cpp | 7 |
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); } |