diff options
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 4 | ||||
-rw-r--r-- | src/script/common/c_content.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index a8f874241..962391a04 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -1088,7 +1088,7 @@ bool push_json_value(lua_State *L, const Json::Value &value, int nullindex) } // Converts Lua table --> JSON -void get_json_value(lua_State *L, Json::Value &root, int index) +void read_json_value(lua_State *L, Json::Value &root, int index) { int type = lua_type(L, index); if (type == LUA_TBOOLEAN) { @@ -1104,7 +1104,7 @@ void get_json_value(lua_State *L, Json::Value &root, int index) while (lua_next(L, index)) { // Key is at -2 and value is at -1 Json::Value value; - get_json_value(L, value, lua_gettop(L)); + read_json_value(L, value, lua_gettop(L)); Json::ValueType roottype = root.type(); int keytype = lua_type(L, -1); diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index 3b85e5403..c2d84ac11 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -150,7 +150,7 @@ void luaentity_get (lua_State *L,u16 id); bool push_json_value (lua_State *L, const Json::Value &value, int nullindex); -void get_json_value (lua_State *L, +void read_json_value (lua_State *L, Json::Value &root, int index); |