Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagsAtStartOfFlowContainerWithPathString skipping tags for knots with a parameter #854

Open
Rhuantavan opened this issue Jul 3, 2023 · 0 comments

Comments

@Rhuantavan
Copy link

I have encountered an issue when tags are ignored by TagsForContentAtPath(string path) for a knot that contains a parameter.
Example:

=== Util_DigMound(container_id) ===
#MiniNarrative
"It looks like something's buried here," PARTY_RAND said<>

I have narrowed the problem to TagsAtStartOfFlowContainerWithPathString in Story.cs. If the content begins with a variable assignment, the initial tags will be ignored. I have fixed the issue by adding:

var v = c as Runtime.VariableAssignment; if (v != null) { continue; }

just before

var command = c as Runtime.ControlCommand;

in the foreach loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant