From 88df0a248c1e2278059d3e78e3f92576bf244f2c Mon Sep 17 00:00:00 2001 From: Sam V Date: Mon, 28 Mar 2022 13:07:09 +0200 Subject: [PATCH] Fix node graphs being loaded from search paths other than GAMECONFIG path Resolves #145 --- dlls/nodes.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/nodes.cpp b/dlls/nodes.cpp index e76bc172f..fa2c06638 100644 --- a/dlls/nodes.cpp +++ b/dlls/nodes.cpp @@ -2325,8 +2325,9 @@ bool CGraph::FLoadGraph(const char* szMapName) const std::string fileName{std::string{"maps/graphs/"} + szMapName + ".nod"}; - //Note: no path ID to allow loading graphs from addon content. - const auto buffer = FileSystem_LoadFileIntoBuffer(fileName.c_str()); + //Note: "GAME" path ID to allow loading graphs from addon content. + //Do not allow loading from other games since they may have a different graph format. + const auto buffer = FileSystem_LoadFileIntoBuffer(fileName.c_str(), "GAME"); if (buffer.empty()) {