libsaria: Only load song if string is not empty

It's stupid to try loading an empty string.
This commit is contained in:
Bryan Schumaker 2011-11-09 08:33:40 -05:00
parent ab3c89d5e6
commit 026bf0c010
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ namespace libsaria
void audio::load(string file)
{
if (file == "")
return;
string uri = "file://" + file;
reset();
println("Loading uri: " + uri);