diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-12-30 16:15:40 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-12-30 23:28:39 +0100 |
commit | 1b2363230e2bfe72d57648768816c632d1975284 (patch) | |
tree | d799b39f1259933d83fc6d2289f77f5246f52dbb /crawl-ref/source/l_option.cc | |
parent | ef678e2bfe9d72659e9fe3f2b14a8b0ac8fb7059 (diff) | |
download | crawl-ref-1b2363230e2bfe72d57648768816c632d1975284.tar.gz crawl-ref-1b2363230e2bfe72d57648768816c632d1975284.zip |
Include Options among globals handled by DEBUG_GLOBALS.
Diffstat (limited to 'crawl-ref/source/l_option.cc')
-rw-r--r-- | crawl-ref/source/l_option.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/l_option.cc b/crawl-ref/source/l_option.cc index c1b0e44b21..8fc773220d 100644 --- a/crawl-ref/source/l_option.cc +++ b/crawl-ref/source/l_option.cc @@ -92,7 +92,11 @@ static int option_get(lua_State *ls) const option_handler *oh = get_handler(opt); if (oh) +#ifdef DEBUG_GLOBALS + return (oh->handler(ls, opt, (char*)real_Options+(intptr_t)oh->data, true)); +#else return (oh->handler(ls, opt, oh->data, true)); +#endif return (0); } |