mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
GLK: LEVEL9: Fix array overrun
This commit is contained in:
parent
b68ae5af8d
commit
44a19cc570
@ -795,7 +795,7 @@ L9BOOL intinitialise(const char *filename, char *picname) {
|
||||
error("\rWhat appears to be V1 game data was found, but the game was not recognised.\rEither this is an unknown V1 game file or, more likely, it is corrupted.\r");
|
||||
return FALSE;
|
||||
}
|
||||
for (i = 0; i < 6; i++) {
|
||||
for (i = 0; i < 5; i++) {
|
||||
int off = g_vm->_detection.v1Game().L9Ptrs[i];
|
||||
if (off < 0)
|
||||
L9Pointers[i + 2] = acodeptr + off;
|
||||
|
Loading…
x
Reference in New Issue
Block a user