diff options
author | Nicola Mettifogo | 2009-04-29 16:59:10 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-04-29 16:59:10 +0000 |
commit | 3607c637587c6b9e2442bc668fc4c8c9459c0168 (patch) | |
tree | 0c3d48850acf9b0ee8e46e7f0f0d47df8d97bd11 /engines/parallaction/objects.cpp | |
parent | 4688811024992e6370a1e4995301329b33da08ad (diff) | |
download | scummvm-rg350-3607c637587c6b9e2442bc668fc4c8c9459c0168.tar.gz scummvm-rg350-3607c637587c6b9e2442bc668fc4c8c9459c0168.tar.bz2 scummvm-rg350-3607c637587c6b9e2442bc668fc4c8c9459c0168.zip |
Refactoring.
svn-id: r40210
Diffstat (limited to 'engines/parallaction/objects.cpp')
-rw-r--r-- | engines/parallaction/objects.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp index 85e0215956..4ed198d240 100644 --- a/engines/parallaction/objects.cpp +++ b/engines/parallaction/objects.cpp @@ -423,18 +423,19 @@ void FixedTable::clear() { _used -= deleted; } -Table* createTableFromStream(uint32 size, Common::SeekableReadStream &stream) { +Table* createTableFromStream(uint32 size, Common::SeekableReadStream *stream) { + assert(stream); Table *t = new Table(size); + assert(t); - Script s(&stream, false); - + Script s(stream, false); s.readLineToken(); while (scumm_stricmp(_tokens[0], "ENDTABLE")) { t->addData(_tokens[0]); s.readLineToken(); } - + delete stream; return t; } |