From bb4d6c2a557c723026255e7c78224d1b6b70bb72 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 1 Jul 2024 13:50:32 -0500 Subject: [PATCH] XM impott: fix build --- src/engine/fileOps/xm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/fileOps/xm.cpp b/src/engine/fileOps/xm.cpp index a7f638b9b..851b30a9e 100644 --- a/src/engine/fileOps/xm.cpp +++ b/src/engine/fileOps/xm.cpp @@ -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;