diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-24 18:49:57 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-24 18:55:19 +0530 |
commit | 73905f957c3a71355a090467b59013bbf6d235bc (patch) | |
tree | 4ee36b4ceac25143c4606ed67458f9d2c8ea7621 /crawl-ref/source/clua.cc | |
parent | ba8c91386a23fab87f9ca365658dc7f092baf4d3 (diff) | |
download | crawl-ref-73905f957c3a71355a090467b59013bbf6d235bc.tar.gz crawl-ref-73905f957c3a71355a090467b59013bbf6d235bc.zip |
Fix stash-tracker item annotations and restrict user scripts to access items only on the same turn the items were wrapped for Lua by the core C++ code.
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 2cd15a4bbf..60976e9600 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -670,7 +670,7 @@ CLua &CLua::get_vm(lua_State *ls) { lua_stack_cleaner clean(ls); _getregistry(ls, "__clua"); - CLua *vm = util_get_userdata<CLua>(ls, -1); + CLua *vm = clua_get_lightuserdata<CLua>(ls, -1); if (!vm) end(1, false, "Failed to find CLua for lua state %p", ls); return (*vm); |