diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-05-11 11:32:08 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-05-11 11:32:56 +0200 |
commit | 65fc5835909f536b773a2ffb1a629dd2bc83a58f (patch) | |
tree | 8e78281a8979e059643490a9e79126590082e156 /crawl-ref/source/l_item.cc | |
parent | 0be3160fbb465395799acf66c278f66b1216439d (diff) | |
download | crawl-ref-65fc5835909f536b773a2ffb1a629dd2bc83a58f.tar.gz crawl-ref-65fc5835909f536b773a2ffb1a629dd2bc83a58f.zip |
Fix a lua info leak.
We shouldn't return enum values ever anyway.
Diffstat (limited to 'crawl-ref/source/l_item.cc')
-rw-r--r-- | crawl-ref/source/l_item.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/l_item.cc b/crawl-ref/source/l_item.cc index 7d76d762ba..a1d22c3a1e 100644 --- a/crawl-ref/source/l_item.cc +++ b/crawl-ref/source/l_item.cc @@ -353,13 +353,11 @@ static int l_item_do_subtype (lua_State *ls) else lua_pushnil(ls); - lua_pushnumber(ls, item->sub_type); - return (2); + return (1); } lua_pushnil(ls); - lua_pushnil(ls); - return (2); + return (1); } IDEFN(subtype, do_subtype); |