Skip to content

Commit

Permalink
Fix bug when accessing a variable in a folder (#2025)
Browse files Browse the repository at this point in the history
When setting a dialogic variable in code, it showed a bug here after alpha 12.

The method called _set_value_in_dictionary in outside as VariableFolder has been removed since commit Variables Rework (second PR attempt) (#1972)
  • Loading branch information
endaye committed Jan 18, 2024
1 parent d8df1d7 commit 0fd1d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Modules/Variable/subsystem_variables.gd
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class VariableFolder:
func _set(property, value) -> bool:
property = str(property)
if not value is VariableFolder:
outside._set_value_in_dictionary(path+"."+property, outside.dialogic.current_state_info['variables'], value)
DialogicUtil._set_value_in_dictionary(path+"."+property, outside.dialogic.current_state_info['variables'], value)
return true

func has(key) -> bool:
Expand Down

0 comments on commit 0fd1d46

Please sign in to comment.