Make utils.addressof() work for raw userdata

develop
lethosor 2020-11-19 21:32:42 -05:00
parent c1299d1c98
commit fb44b26b47
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
2 changed files with 4 additions and 1 deletions

@ -58,6 +58,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- `buildingplan`: added Lua interface API
- add item type param to dfhack.job.isSuitableMaterial() so the non_economic flag can be properly handled (it was being matched for all item types instead of just boulders)
## Lua
- ``utils.addressof()``: fixed for raw userdata
# 0.47.04-r3
## New Plugins

@ -679,7 +679,7 @@ function df_expr_to_ref(expr)
end
function addressof(obj)
return select(2, obj:sizeof())
return select(2, df.sizeof(obj))
end
function OrderedTable()