From 2a865d387aeb5eb65b3dd926d286829dfe0db261 Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Thu, 16 Jun 2022 18:46:25 -0400 Subject: [PATCH] * BugFix: When loading sound assets, don't resolve the absolute path. --- Engine/source/sfx/sfxProfile.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Engine/source/sfx/sfxProfile.cpp b/Engine/source/sfx/sfxProfile.cpp index ab3bc44ab..92c79e9e0 100644 --- a/Engine/source/sfx/sfxProfile.cpp +++ b/Engine/source/sfx/sfxProfile.cpp @@ -284,10 +284,7 @@ bool SFXProfile::_preloadBuffer() Resource& 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;