SCUMM: Fix compilation failure when DISABLE_TOWNS_DUAL_LAYER_MODE is defined

This commit is contained in:
Colin Snover 2018-01-31 21:12:22 -06:00
parent 08186aeec6
commit ffdb5a8ebc

View file

@ -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