GOB: Fix a potential array overrun

This commit is contained in:
Sven Hesse 2013-04-15 18:30:12 +02:00
parent eb55db436d
commit 3540b943cf

View File

@ -98,7 +98,7 @@ void SoundBlaster::playComposition(const int16 *composition, int16 freqVal,
do {
i++;
_composition[i] = composition[i];
} while ((i < 50) && (composition[i] != -1));
} while ((i < 49) && (composition[i] != -1));
_compositionPos = -1;
nextCompositionPos();