diff options
author | Sven Hesse | 2008-05-13 19:53:14 +0000 |
---|---|---|
committer | Sven Hesse | 2008-05-13 19:53:14 +0000 |
commit | eef0a317a2d4068554ca3ff55c29411227ab1542 (patch) | |
tree | c0a6c2963e025a65a7e71a9e7f56fe1ef12f8d39 /engines/gob | |
parent | 72dc3ecc55a3f2173ed12d86ae7413c2b627eca0 (diff) | |
download | scummvm-rg350-eef0a317a2d4068554ca3ff55c29411227ab1542.tar.gz scummvm-rg350-eef0a317a2d4068554ca3ff55c29411227ab1542.tar.bz2 scummvm-rg350-eef0a317a2d4068554ca3ff55c29411227ab1542.zip |
Added a warning when all chunk slots are full, as that's still a problem in Woodruff (some videos aren't closed correctly yet).
svn-id: r32091
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/dataio.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/dataio.cpp b/engines/gob/dataio.cpp index dd5d30bd39..8ae11b8755 100644 --- a/engines/gob/dataio.cpp +++ b/engines/gob/dataio.cpp @@ -232,8 +232,10 @@ int16 DataIO::getChunk(const char *chunkName) { if (_chunkPos[file * MAX_SLOT_COUNT + slot] == -1) break; - if (slot == MAX_SLOT_COUNT) + if (slot == MAX_SLOT_COUNT) { + warning("Chunk slots full"); return -1; + } dataDesc = _dataFiles[file]; for (int16 chunk = 0; chunk < _numDataChunks[file]; chunk++, dataDesc++) { |