diff options
author | Paul Gilbert | 2014-08-27 22:13:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-27 22:13:43 -0400 |
commit | c0a7852662be724077921bcf9b9bb0bf2da2dfff (patch) | |
tree | c8487eeafdadd15a81d5918b951014420be5a1b7 /engines/access/amazon/amazon_room.cpp | |
parent | 455011c37e20fb2d859e1c3f04650e369844c921 (diff) | |
download | scummvm-rg350-c0a7852662be724077921bcf9b9bb0bf2da2dfff.tar.gz scummvm-rg350-c0a7852662be724077921bcf9b9bb0bf2da2dfff.tar.bz2 scummvm-rg350-c0a7852662be724077921bcf9b9bb0bf2da2dfff.zip |
ACCESS: Refactor the file manager to return resource structures
Diffstat (limited to 'engines/access/amazon/amazon_room.cpp')
-rw-r--r-- | engines/access/amazon/amazon_room.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp index f64264f7d7..227fc474cf 100644 --- a/engines/access/amazon/amazon_room.cpp +++ b/engines/access/amazon/amazon_room.cpp @@ -131,9 +131,9 @@ void AmazonRoom::roomSet() { } void AmazonRoom::roomMenu() { - byte *iconData = _vm->_files->loadFile("ICONS.LZ"); - SpriteResource *spr = new SpriteResource(_vm, iconData, _vm->_files->_filesize); - delete[] iconData; + Resource *iconData = _vm->_files->loadFile("ICONS.LZ"); + SpriteResource *spr = new SpriteResource(_vm, iconData); + delete iconData; _vm->_screen->saveScreen(); _vm->_screen->setDisplayScan(); |