bugfix: sharedata can be update more than once

This commit is contained in:
Cloud Wu
2014-09-27 03:02:18 +08:00
parent 36d77aaa2b
commit 016b4dc58f
2 changed files with 3 additions and 6 deletions

View File

@@ -747,9 +747,6 @@ lupdate(lua_State *L) {
luaL_checktype(L, 3, LUA_TTABLE);
struct ctrl * c= lua_touserdata(L, 1);
struct table *n = lua_touserdata(L, 2);
if (c->update) {
return luaL_error(L, "can't update more than once");
}
if (c->root == n) {
return luaL_error(L, "You should update a new object");
}