fix possible crash when loading invalid song

issue #1760
This commit is contained in:
tildearrow 2024-02-12 13:55:06 -05:00
parent a05b133b3a
commit 10fc2d9354

View file

@ -136,7 +136,7 @@ bool DivEngine::load(unsigned char* f, size_t slen) {
}
// step 3: try loading as .mod
if (loadMod(f,slen)) {
if (loadMod(file,len)) {
delete[] f;
return true;
}