diff options
Diffstat (limited to 'engines/hugo/file.cpp')
-rw-r--r-- | engines/hugo/file.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index 1758f3f6a5..e58c2e57d6 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -59,6 +59,11 @@ static const int s_bootCypherLen = sizeof(s_bootCypher) - 1; FileManager::FileManager(HugoEngine *vm) : _vm(vm) { _hasReadHeader = false; _firstUIFFl = true; + + _UIFHeader->_size = 0; + _UIFHeader->_offset = 0; + _soundHdr->_size = 0; + _soundHdr->_offset = 0; } FileManager::~FileManager() { @@ -491,7 +496,7 @@ void FileManager::readBootFile() { memset(_vm->_boot._distrib, '\0', sizeof(_vm->_boot._distrib)); _vm->_boot._registered = kRegFreeware; return; - } else if (_vm->getPlatform() == Common::kPlatformPC) { + } else if (_vm->getPlatform() == Common::kPlatformDOS) { warning("readBootFile - Skipping as H2 and H3 Dos may be shareware"); memset(_vm->_boot._distrib, '\0', sizeof(_vm->_boot._distrib)); _vm->_boot._registered = kRegShareware; |