SCUMM: (FM-Towns) - array declaration cleanup

_cyclRects can have no more than 10 entries, but was declared as [16]. Someone put a TODO about it in saveload.cpp, so why not fix it...
This commit is contained in:
athrxx 2021-02-28 00:00:34 +01:00
parent d2c4ad9b16
commit 65f567d817
2 changed files with 1 additions and 2 deletions

View File

@ -1318,7 +1318,6 @@ void ScummEngine::saveLoadWithSerializer(Common::Serializer &s) {
if (hasTownsData) {
s.syncBytes(_textPalette, 48);
// TODO: This seems wrong, there are 16 _cyclRects
s.syncArray(_cyclRects, 10, syncWithSerializer, VER(82));
if (s.getVersion() >= VER(82))
syncWithSerializer(s, _curStringRect);

View File

@ -1365,7 +1365,7 @@ protected:
void towns_waitForScroll(int waitForDirection, int threshold = 0);
void towns_updateGfx();
Common::Rect _cyclRects[16];
Common::Rect _cyclRects[10];
int _numCyclRects;
int _scrollRequest;
int _scrollDeltaAdjust;