summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_option.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-30 16:15:40 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-30 23:28:39 +0100
commit1b2363230e2bfe72d57648768816c632d1975284 (patch)
treed799b39f1259933d83fc6d2289f77f5246f52dbb /crawl-ref/source/l_option.cc
parentef678e2bfe9d72659e9fe3f2b14a8b0ac8fb7059 (diff)
downloadcrawl-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.cc4
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);
}