SCUMM: Fix compilation failure when DISABLE_TOWNS_DUAL_LAYER_MODE is defined
This commit is contained in:
parent
08186aeec6
commit
ffdb5a8ebc
1 changed files with 3 additions and 4 deletions
|
@ -1303,13 +1303,12 @@ void ScummEngine::saveLoadWithSerializer(Common::Serializer &s) {
|
|||
|
||||
#ifdef DISABLE_TOWNS_DUAL_LAYER_MODE
|
||||
byte hasTownsData = 0;
|
||||
if (_game.platform == Common::kPlatformFMTowns && s->getVersion() > VER(87))
|
||||
s->saveLoadArrayOf(&hasTownsData, 1, sizeof(byte), sleByte);
|
||||
if (_game.platform == Common::kPlatformFMTowns && s.getVersion() > VER(87))
|
||||
s.syncAsByte(hasTownsData);
|
||||
|
||||
if (hasTownsData) {
|
||||
// Skip FM-Towns specific data
|
||||
for (i = 69 * sizeof(uint8) + 44 * sizeof(int16); i; i--)
|
||||
s->loadByte();
|
||||
s.skip(69 + 44 * sizeof(int16));
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue