aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-09-17 18:22:52 +0000
committerNicola Mettifogo2007-09-17 18:22:52 +0000
commitef0df159f14ffae39860801db1c6c7f5c7872137 (patch)
tree3d013309447f10ec0958c9be2ac636575cbde0f6 /engines/parallaction/disk_br.cpp
parentc4aa4fe644a13d381a9140db6c7b93db7eb1f30c (diff)
downloadscummvm-rg350-ef0df159f14ffae39860801db1c6c7f5c7872137.tar.gz
scummvm-rg350-ef0df159f14ffae39860801db1c6c7f5c7872137.tar.bz2
scummvm-rg350-ef0df159f14ffae39860801db1c6c7f5c7872137.zip
* moved Table handling to objects.cpp
* added helper functions to load tables from files * fixed occasional lock-ups on location change because of broken Table deallocation svn-id: r28933
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r--engines/parallaction/disk_br.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index 64eb6b533d..5b79ad7df6 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -357,13 +357,7 @@ Table* DosDisk_br::loadTable(const char* name) {
if (!stream.open(path))
errorFileNotFound(path);
- Table *t = new Table(100);
-
- fillBuffers(stream);
- while (scumm_stricmp(_tokens[0], "ENDTABLE")) {
- t->addData(_tokens[0]);
- fillBuffers(stream);
- }
+ Table *t = createTableFromStream(100, stream);
stream.close();