From f6648523b76a2a2e871242c995e30bc19f0d395b Mon Sep 17 00:00:00 2001 From: m Date: Mon, 14 Apr 2025 20:53:43 -0500 Subject: [PATCH] fix GSC include paths closes #277 --- src/client/component/gsc/script_loading.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/gsc/script_loading.cpp b/src/client/component/gsc/script_loading.cpp index c88ab19b..407d7ee4 100644 --- a/src/client/component/gsc/script_loading.cpp +++ b/src/client/component/gsc/script_loading.cpp @@ -335,7 +335,7 @@ namespace gsc const auto script_name = std::filesystem::path(included_path).replace_extension().string(); std::string file_buffer; - if (!read_raw_script_file(script_name, &file_buffer) || file_buffer.empty()) + if (!read_raw_script_file(included_path, &file_buffer) || file_buffer.empty()) { const auto name = get_script_file_name(script_name); if (game::DB_XAssetExists(game::ASSET_TYPE_SCRIPTFILE, name.data())) @@ -349,7 +349,7 @@ namespace gsc std::vector script_data; script_data.assign(file_buffer.begin(), file_buffer.end()); - return { {}, script_data }; + return {{}, script_data}; }); }