Bugfix, if path was given the filename was not used at all.
This commit is contained in:
parent
698fe1aa1b
commit
d32cb733a5
@ -593,7 +593,7 @@ SFXBuffer* SFXManager::loadSingleSfx(const XMLNode* node,
|
|||||||
// to load terrain specific sfx.
|
// to load terrain specific sfx.
|
||||||
const std::string full_path = (path == "")
|
const std::string full_path = (path == "")
|
||||||
? file_manager->getAsset(FileManager::SFX,filename)
|
? file_manager->getAsset(FileManager::SFX,filename)
|
||||||
: path;
|
: path+"/"+filename;
|
||||||
|
|
||||||
SFXBuffer tmpbuffer(full_path, node);
|
SFXBuffer tmpbuffer(full_path, node);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user