Skip to content

Commit

Permalink
pos now starts at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcharrison committed Jan 16, 2019
1 parent fc06490 commit c576b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/add-symbol.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ add_symbol <- function(tree, value, save, time, terminal = FALSE) {
value = value,
save = save,
time = time,
pos = tree$num_observed,
pos = tree$num_observed + 1L,
terminal = terminal,
exclude_update = exclude_update)
if (is.na(tree$active_order) && !is(res, "empty_node")) tree$active_order <- j
Expand Down

0 comments on commit c576b34

Please sign in to comment.