mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-23 12:22:30 +00:00
- fixed inverted error checking logic for loading a patch set in the WildMidi player.
This commit is contained in:
parent
8375c06737
commit
6b5aebf6a3
1 changed files with 2 additions and 2 deletions
|
@ -87,10 +87,10 @@ void WildMIDIDevice::LoadInstruments()
|
|||
{
|
||||
wildMidiConfig.loadedConfig = wildMidiConfig.readerName;
|
||||
wildMidiConfig.instruments.reset(new WildMidi::Instruments(wildMidiConfig.reader, SampleRate));
|
||||
bool success = wildMidiConfig.instruments->LoadConfig(wildMidiConfig.readerName.c_str());
|
||||
int error = wildMidiConfig.instruments->LoadConfig(wildMidiConfig.readerName.c_str());
|
||||
wildMidiConfig.reader = nullptr;
|
||||
|
||||
if (!success)
|
||||
if (error)
|
||||
{
|
||||
wildMidiConfig.instruments.reset();
|
||||
wildMidiConfig.loadedConfig = "";
|
||||
|
|
Loading…
Reference in a new issue