Increment tree refcount.
This commit is contained in:
parent
cf57c4a29a
commit
3fc7f46680
|
@ -15,6 +15,9 @@ void libab_behavior_init_tree(libab_behavior* behavior, libab_tree* tree) {
|
|||
void libab_behavior_copy(libab_behavior* behavior, libab_behavior* into) {
|
||||
into->variant = behavior->variant;
|
||||
into->data_u = behavior->data_u;
|
||||
if(into->variant == BIMPL_TREE) {
|
||||
into->data_u.tree->int_value++;
|
||||
}
|
||||
}
|
||||
|
||||
void libab_behavior_free(libab_behavior* behavior) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user