From d024381e5200c60855f82e42753364ea5c018296 Mon Sep 17 00:00:00 2001 From: staphen Date: Fri, 9 May 2025 18:33:42 -0400 Subject: [PATCH] Use paths::GetBasePath() so it can be freed --- Source/engine/assets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/engine/assets.cpp b/Source/engine/assets.cpp index ffc800904..c803fe631 100644 --- a/Source/engine/assets.cpp +++ b/Source/engine/assets.cpp @@ -491,7 +491,7 @@ void LoadModArchives(std::span modnames) if (FileExists(targetPath)) { OverridePaths.emplace_back(targetPath); } - targetPath = StrCat(SDL_GetBasePath(), "mods" DIRECTORY_SEPARATOR_STR, modname, DIRECTORY_SEPARATOR_STR); + targetPath = StrCat(paths::BasePath(), "mods" DIRECTORY_SEPARATOR_STR, modname, DIRECTORY_SEPARATOR_STR); if (FileExists(targetPath)) { OverridePaths.emplace_back(targetPath); }