mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
fix addOrder() undefined behavior
This commit is contained in:
parent
35d56ac5d6
commit
495aec86bd
1 changed files with 1 additions and 0 deletions
|
@ -2146,6 +2146,7 @@ void DivEngine::delSample(int index) {
|
||||||
void DivEngine::addOrder(bool duplicate, bool where) {
|
void DivEngine::addOrder(bool duplicate, bool where) {
|
||||||
unsigned char order[DIV_MAX_CHANS];
|
unsigned char order[DIV_MAX_CHANS];
|
||||||
if (curSubSong->ordersLen>=0xff) return;
|
if (curSubSong->ordersLen>=0xff) return;
|
||||||
|
memset(order,0,DIV_MAX_CHANS);
|
||||||
BUSY_BEGIN_SOFT;
|
BUSY_BEGIN_SOFT;
|
||||||
if (duplicate) {
|
if (duplicate) {
|
||||||
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
||||||
|
|
Loading…
Reference in a new issue