From 7f0fdde6d473726a8da5aa4f0e5aa14c1dc0783e Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 24 Apr 2006 04:43:37 +0000 Subject: Remove duplicate variable in readGamePcText() svn-id: r22131 --- engines/simon/res.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'engines') 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); } -- cgit v1.2.3