diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-27 17:22:52 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-27 17:22:52 +1000 |
commit | a3fe300c4b1f758a99e2f1b15e5a2f342701642c (patch) | |
tree | 6f93ff8bd17365a86317a6f708a7575392ae4112 /crawl-ref/source/l_dgnit.cc | |
parent | 942ab6b6d0b901926ad69859f975db17ac64b585 (diff) | |
download | crawl-ref-a3fe300c4b1f758a99e2f1b15e5a2f342701642c.tar.gz crawl-ref-a3fe300c4b1f758a99e2f1b15e5a2f342701642c.zip |
Fix item_pickup Triggerables (elliptic).
Was using dgn.item_from_index, which used the old lightuserdata method
of pushing items through to the Lua, rather than the new clua_push_item
method. Previous version lacked the "name" method, which proved
problematic when picking up the orb.
Diffstat (limited to 'crawl-ref/source/l_dgnit.cc')
-rw-r--r-- | crawl-ref/source/l_dgnit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgnit.cc b/crawl-ref/source/l_dgnit.cc index 0d8a0a06a3..f70e1b64a5 100644 --- a/crawl-ref/source/l_dgnit.cc +++ b/crawl-ref/source/l_dgnit.cc @@ -56,7 +56,7 @@ static int dgn_item_from_index(lua_State *ls) item_def *item = &mitm[index]; if (item->is_valid()) - lua_pushlightuserdata(ls, item); + clua_push_item(ls, item); else lua_pushnil(ls); |