Moved volume change in modplug decoder to after check if file has been loaded, thanks Michael R (fixes #60)

This commit is contained in:
Bart van Strien
2010-09-06 07:53:30 +02:00
parent 3930028ee0
commit fe60afda0e
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -43,11 +43,11 @@ namespace lullaby
// Load the module.
plug = ModPlug_Load(data->getData(), data->getSize());
ModPlug_SetMasterVolume(plug, 512);
if(plug == 0)
throw love::Exception("Could not load file with ModPlug.");
ModPlug_SetMasterVolume(plug, 512);
}
ModPlugDecoder::~ModPlugDecoder()