diff options
Diffstat (limited to 'client/system')
| -rw-r--r-- | client/system/settings.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/system/settings.gd b/client/system/settings.gd index 70c6b505..12b14857 100644 --- a/client/system/settings.gd +++ b/client/system/settings.gd @@ -137,7 +137,7 @@ static func hook_changed(key: String, slot, callable: Callable): slot.tree_exiting.connect(_unhook_changed.bind(key, slot_id), CONNECT_ONE_SHOT) elif slot is String: slot_id = slot.hash() - else: + else: push_error("hook_changed called with invalid slot") return if not change_hooks.has(key): change_hooks[key] = {} |