mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
fix .fui instruments not loading!
This commit is contained in:
parent
ac3772c024
commit
4ec91b8b42
1 changed files with 3 additions and 1 deletions
|
@ -633,7 +633,7 @@ void DivEngine::loadSBI(SafeReader& reader, std::vector<DivInstrument*>& ret, St
|
|||
|
||||
void DivEngine::loadOPM(SafeReader& reader, std::vector<DivInstrument*>& ret, String& stripPath) {
|
||||
DivInstrument* ins[128];
|
||||
memset(ins,0,128*sizeof(DivInstrument*));
|
||||
memset(ins,0,128*sizeof(void*));
|
||||
|
||||
try {
|
||||
String line;
|
||||
|
@ -733,6 +733,8 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path) {
|
|||
delete ins;
|
||||
delete[] buf;
|
||||
return ret;
|
||||
} else {
|
||||
ret.push_back(ins);
|
||||
}
|
||||
} catch (EndOfFileException& e) {
|
||||
lastError="premature end of file";
|
||||
|
|
Loading…
Reference in a new issue