mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-01 04:21:44 +00:00
fix loading some .dmf modules
This commit is contained in:
parent
82d8728ca1
commit
af26ec9faf
1 changed files with 1 additions and 1 deletions
|
@ -1172,7 +1172,7 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
|
||||||
if (ds.system[0]==DIV_SYSTEM_GB) {
|
if (ds.system[0]==DIV_SYSTEM_GB) {
|
||||||
wave->max=15;
|
wave->max=15;
|
||||||
}
|
}
|
||||||
if (wave->len>32) {
|
if (wave->len>33) {
|
||||||
logE("invalid wave length %d. are we doing something wrong?\n",wave->len);
|
logE("invalid wave length %d. are we doing something wrong?\n",wave->len);
|
||||||
lastError="file is corrupt or unreadable at wavetables";
|
lastError="file is corrupt or unreadable at wavetables";
|
||||||
delete[] file;
|
delete[] file;
|
||||||
|
|
Loading…
Reference in a new issue