From 8b0e9502ec706cc82b05c216801ac0fd0a46d7fd Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Fri, 6 Aug 2004 17:01:58 +0000 Subject: cleanup and simplify Resource class a bit more svn-id: r14488 --- queen/logic.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'queen/logic.cpp') diff --git a/queen/logic.cpp b/queen/logic.cpp index 9fc480d5f2..9fbee28824 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -181,10 +181,9 @@ void Logic::initialise() { delete[] jas; - - _queen2jas = new LineReader( - (char *)_vm->resource()->loadFile("QUEEN2.JAS"), - _vm->resource()->fileSize("QUEEN2.JAS")); + uint32 size; + char *buf = (char *)_vm->resource()->loadFile("QUEEN2.JAS", 0, &size); + _queen2jas = new LineReader(buf, size); _objDescription = new char*[_numDescriptions + 1]; _objDescription[0] = 0; -- cgit v1.2.3