Skip to content

Commit

Permalink
Fix error message when adding conflicting agent functions.
Browse files Browse the repository at this point in the history
The error message was attempting to print the name of both the agent and
of the function being added, however it was accidentally using the
agent's name twice instead.
  • Loading branch information
plietar authored and Robadob committed Dec 4, 2024
1 parent dfae015 commit f48266c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flamegpu/model/LayerDescription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void LayerDescription::addAgentFunction(const std::string &agentName, const std:
THROW exception::InvalidAgentFunc("Agent function '%s' owned by agent '%s' cannot be added to this layer as agent function '%s' "
"within the layer shares an input or output state, this is not permitted, "
"in LayerDescription::addAgentFunction().",
a->second->name.c_str(), agentName.c_str(), b->name.c_str());
f->second->name.c_str(), agentName.c_str(), b->name.c_str());
}
}
// Check that the layer does not already contain function for the agent + state being output to
Expand Down

0 comments on commit f48266c

Please sign in to comment.