XM impott: fix build

This commit is contained in:
tildearrow 2024-07-01 13:50:32 -05:00
parent 6449bc9af2
commit bb4d6c2a55

View file

@ -204,7 +204,7 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
double bpm=(unsigned short)reader.readS();
ds.subsong[0]->hz=(double)bpm/2.5;
if (ordersLen>256) {
if (ds.subsong[0]->ordersLen>256) {
logE("invalid order count!");
lastError="invalid order count";
delete[] file;