Bugfix, if path was given the filename was not used at all.

This commit is contained in:
hiker 2017-03-15 22:30:32 +11:00
parent 698fe1aa1b
commit d32cb733a5

View File

@ -593,7 +593,7 @@ SFXBuffer* SFXManager::loadSingleSfx(const XMLNode* node,
// to load terrain specific sfx.
const std::string full_path = (path == "")
? file_manager->getAsset(FileManager::SFX,filename)
: path;
: path+"/"+filename;
SFXBuffer tmpbuffer(full_path, node);