[Scummvm-cvs-logs] SF.net SVN: scummvm: [22131] scummvm/trunk/engines/simon/res.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sun Apr 23 21:44:02 CEST 2006
Revision: 22131
Author: kirben
Date: 2006-04-23 21:43:37 -0700 (Sun, 23 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22131&view=rev
Log Message:
-----------
Remove duplicate variable in readGamePcText()
Modified Paths:
--------------
scummvm/trunk/engines/simon/res.cpp
Modified: scummvm/trunk/engines/simon/res.cpp
===================================================================
--- scummvm/trunk/engines/simon/res.cpp 2006-04-24 04:34:57 UTC (rev 22130)
+++ scummvm/trunk/engines/simon/res.cpp 2006-04-24 04:43:37 UTC (rev 22131)
@@ -253,15 +253,14 @@
}
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list