libsaria: Only load song if string is not empty
It's stupid to try loading an empty string.
This commit is contained in:
parent
ab3c89d5e6
commit
026bf0c010
|
@ -52,6 +52,8 @@ namespace libsaria
|
|||
|
||||
void audio::load(string file)
|
||||
{
|
||||
if (file == "")
|
||||
return;
|
||||
string uri = "file://" + file;
|
||||
reset();
|
||||
println("Loading uri: " + uri);
|
||||
|
|
Loading…
Reference in New Issue