From ba5f683dcbb8f4ba7dbc882f3a9ebd2eaffaca21 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 27 Jan 2007 18:41:57 +0200 Subject: [PATCH] l_set_option: Use option_changed() instead of inline code. --- src/scripting/lua/core.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c index 96b96d8f0..c50d43e53 100644 --- a/src/scripting/lua/core.c +++ b/src/scripting/lua/core.c @@ -491,7 +491,7 @@ static int l_set_option(LS) { int nargs; - struct option *opt, *current; + struct option *opt; const char *name; nargs = lua_gettop(S); @@ -536,11 +536,8 @@ l_set_option(LS) goto lua_error; } - opt->flags |= OPT_TOUCHED; - /* Call hook */ - current = opt; - call_change_hooks(lua_ses, current, opt); + option_changed(lua_ses, opt, opt); return 1; lua_error: