mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
* BugFix: When loading sound assets, don't resolve the absolute path.
This commit is contained in:
parent
2b8f9e3999
commit
2a865d387a
|
|
@ -284,10 +284,7 @@ bool SFXProfile::_preloadBuffer()
|
|||
|
||||
Resource<SFXResource>& SFXProfile::getResource()
|
||||
{
|
||||
char buf[1024];
|
||||
FileName fullFilename = String(Platform::makeFullPathName(mFilename, buf, sizeof(buf)));
|
||||
|
||||
if (!mResource && SFXResource::exists(fullFilename))
|
||||
if (!mResource && SFXResource::exists(mFilename))
|
||||
mResource = SFXResource::load(mFilename);
|
||||
else
|
||||
mResource = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue