Skip to content

Commit

Permalink
Fix node graphs being loaded from search paths other than GAMECONFIG …
Browse files Browse the repository at this point in the history
…path

Resolves #145
  • Loading branch information
SamVanheer committed Mar 28, 2022
1 parent a02eb83 commit 612df70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,7 @@ 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());
const auto buffer = FileSystem_LoadFileIntoBuffer(fileName.c_str(), "GAMECONFIG");

if (buffer.empty())
{
Expand Down

0 comments on commit 612df70

Please sign in to comment.