diff options
| author | Alexander Gavrilov | 2012-06-14 20:32:23 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-06-14 20:32:23 +0400 |
| commit | 94dfdb486d0a2bbc832f60fd58847732ac670390 (patch) | |
| tree | 4ab465d23e95a5d0f9cd7d85e8731a10db31a6f8 /library/LuaApi.cpp | |
| parent | 9469f275590e2aca9ce13358847bf16a5791a00c (diff) | |
| download | dfhack-94dfdb486d0a2bbc832f60fd58847732ac670390.tar.gz dfhack-94dfdb486d0a2bbc832f60fd58847732ac670390.tar.bz2 dfhack-94dfdb486d0a2bbc832f60fd58847732ac670390.tar.xz | |
Change the field names returned from dfhack.internal.getMemRanges()
'end' is a lua keyword, so it cannot be used conveniently.
Diffstat (limited to 'library/LuaApi.cpp')
| -rw-r--r-- | library/LuaApi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index aa168db3..59956a2c 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -1076,9 +1076,9 @@ static int internal_getMemRanges(lua_State *L) { lua_newtable(L); lua_pushnumber(L, (uint32_t)ranges[i].start); - lua_setfield(L, -2, "start"); + lua_setfield(L, -2, "start_addr"); lua_pushnumber(L, (uint32_t)ranges[i].end); - lua_setfield(L, -2, "end"); + lua_setfield(L, -2, "end_addr"); lua_pushstring(L, ranges[i].name); lua_setfield(L, -2, "name"); lua_pushboolean(L, ranges[i].read); |
