fix loading some .dmf modules

This commit is contained in:
tildearrow 2022-01-31 16:33:32 -05:00
parent 82d8728ca1
commit af26ec9faf
1 changed files with 1 additions and 1 deletions

View File

@ -1172,7 +1172,7 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
if (ds.system[0]==DIV_SYSTEM_GB) {
wave->max=15;
}
if (wave->len>32) {
if (wave->len>33) {
logE("invalid wave length %d. are we doing something wrong?\n",wave->len);
lastError="file is corrupt or unreadable at wavetables";
delete[] file;