aboutsummaryrefslogtreecommitdiff
path: root/internal/validate/checks.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/validate/checks.go')
-rw-r--r--internal/validate/checks.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go
index 9cff717..f1d6b5e 100644
--- a/internal/validate/checks.go
+++ b/internal/validate/checks.go
@@ -806,12 +806,12 @@ func validateTalkConfig(prefix string, cfg *behavior.TalkConfig, itemIDs map[str
if node.Action != nil {
issues = append(issues, validateNodeAction(nodePrefix, node.Action, itemIDs, roomIndex)...)
}
- if node.Next != "" {
- if _, ok := cfg.Nodes[node.Next]; !ok {
+ if node.Goto != "" {
+ if _, ok := cfg.Nodes[node.Goto]; !ok {
issues = append(issues, Issue{
Level: "ERROR",
Type: "reference",
- Message: fmt.Sprintf("%s: next points to nonexistent node %q", nodePrefix, node.Next),
+ Message: fmt.Sprintf("%s: goto points to nonexistent node %q", nodePrefix, node.Goto),
})
}
}