mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
AGS: Fix compiler warning
Fixed an out-of-bounds read warning caused by subscripting a 2d array
This commit is contained in:
parent
de20f4b395
commit
a88fc1ce28
@ -57,7 +57,7 @@ GameState::GameState() {
|
||||
Common::fill(&music_queue[0], &music_queue[MAX_QUEUED_MUSIC], 0);
|
||||
Common::fill(&takeover_from[0], &takeover_from[50], 0);
|
||||
Common::fill(&playmp3file_name[0], &playmp3file_name[PLAYMP3FILE_MAX_FILENAME_LEN], 0);
|
||||
Common::fill(&globalstrings[0][0], &globalstrings[MAXGLOBALSTRINGS][0], 0);
|
||||
Common::fill(&globalstrings[0][0], &globalstrings[MAXGLOBALSTRINGS - 1][MAX_MAXSTRLEN], 0);
|
||||
Common::fill(&lastParserEntry[0], &lastParserEntry[MAX_MAXSTRLEN], 0);
|
||||
Common::fill(&game_name[0], &game_name[100], 0);
|
||||
Common::fill(&default_audio_type_volumes[0], &default_audio_type_volumes[MAX_AUDIO_TYPES], 0);
|
||||
|
Loading…
Reference in New Issue
Block a user