mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
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:
parent
d2c4ad9b16
commit
65f567d817
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user