diff options
Diffstat (limited to 'engines/startrek/actors.cpp')
-rw-r--r-- | engines/startrek/actors.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/startrek/actors.cpp b/engines/startrek/actors.cpp index b2912497d2..1e0d8b6d2a 100644 --- a/engines/startrek/actors.cpp +++ b/engines/startrek/actors.cpp @@ -20,6 +20,9 @@ * */ +#include "common/stream.h" +#include "common/memstream.h" + #include "startrek/iwfile.h" #include "startrek/room.h" #include "startrek/startrek.h" @@ -278,7 +281,7 @@ void StarTrekEngine::renderBanBelowSprites() { _gfx->unlockScreenPixels(); } -void StarTrekEngine::renderBan(byte *destPixels, SharedPtr<FileStream> banFile) { +void StarTrekEngine::renderBan(byte *destPixels, FileStream banFile) { uint16 offset = banFile->readUint16(); int32 size = banFile->readUint16(); @@ -761,7 +764,7 @@ SharedPtr<Bitmap> StarTrekEngine::loadAnimationFrame(const Common::String &filen } // Redraw face with xor file - SharedPtr<FileStream> xorFile = loadFile(filename + ".xor"); + FileStream xorFile = loadFile(filename + ".xor"); xorFile->seek(0, SEEK_SET); uint16 xoffset = bitmap->xoffset - xorFile->readUint16(); uint16 yoffset = bitmap->yoffset - xorFile->readUint16(); |