diff options
author | Gregory Montoir | 2004-01-19 22:31:21 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-19 22:31:21 +0000 |
commit | 95891f95c728cdcf8bbd66d42a4c2b08c735b4fc (patch) | |
tree | 262095890794d6b528fa55f6c23a071156475b97 /queen/credits.cpp | |
parent | 392940e7dd396c932dfba946642f0e567f656dc9 (diff) | |
download | scummvm-rg350-95891f95c728cdcf8bbd66d42a4c2b08c735b4fc.tar.gz scummvm-rg350-95891f95c728cdcf8bbd66d42a4c2b08c735b4fc.tar.bz2 scummvm-rg350-95891f95c728cdcf8bbd66d42a4c2b08c735b4fc.zip |
*temporary* fix for LineReader to handle files not terminated by an empty string (*.crd)
svn-id: r12527
Diffstat (limited to 'queen/credits.cpp')
-rw-r--r-- | queen/credits.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queen/credits.cpp b/queen/credits.cpp index 6d81839dd9..2ccc4055a7 100644 --- a/queen/credits.cpp +++ b/queen/credits.cpp @@ -31,7 +31,8 @@ namespace Queen { Credits::Credits(QueenEngine *vm, const char* filename) : _vm(vm), _running(true), _count(0), _pause(0), _justify(0), _fontSize(0), _color(0), _zone(0) { _credits = new LineReader( - (char*)_vm->resource()->loadFile(filename)); + (char *)_vm->resource()->loadFile(filename), + _vm->resource()->fileSize(filename)); } Credits::~Credits() { |