diff options
author | Filippos Karapetis | 2019-06-10 01:52:35 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-06-11 00:48:16 +0300 |
commit | 709d606e016235b663e04b9abfa9d537bdc753f0 (patch) | |
tree | 0f7376571ed0d239e1bbc96d72b5a842caf55187 /engines/startrek/font.cpp | |
parent | 3f7f1a24108b1333908e82fd01455ea4f863afd3 (diff) | |
download | scummvm-rg350-709d606e016235b663e04b9abfa9d537bdc753f0.tar.gz scummvm-rg350-709d606e016235b663e04b9abfa9d537bdc753f0.tar.bz2 scummvm-rg350-709d606e016235b663e04b9abfa9d537bdc753f0.zip |
STARTREK: Adapt many usages of Common::SharedPtr() to regular pointers
Diffstat (limited to 'engines/startrek/font.cpp')
-rw-r--r-- | engines/startrek/font.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/startrek/font.cpp b/engines/startrek/font.cpp index a5f12a5b27..b0875570f7 100644 --- a/engines/startrek/font.cpp +++ b/engines/startrek/font.cpp @@ -31,12 +31,14 @@ static const byte CHARACTER_COUNT = 0x80; static const byte CHARACTER_SIZE = 0x40; Font::Font(StarTrekEngine *vm) : _vm(vm) { - FileStream fontStream = _vm->loadFile("FONT.FNT"); + Common::MemoryReadStreamEndian *fontStream = _vm->loadFile("FONT.FNT"); _characters = new Character[CHARACTER_COUNT]; for (byte i = 0; i < CHARACTER_COUNT; i++) fontStream->read(_characters[i].data, CHARACTER_SIZE); + + delete fontStream; } Font::~Font() { |