浏览代码

Merge pull request #257 from tim37021/master

Fixed nil issue in getter of tag_name with Lua binding
David Wimsey 10 年之前
父节点
当前提交
af20162811
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/Core/Lua/Element.cpp

+ 1 - 1
Source/Core/Lua/Element.cpp

@@ -495,7 +495,7 @@ int ElementGetAttrtag_name(lua_State* L)
     Element* ele = LuaType<Element>::check(L,1);
     LUACHECKOBJ(ele);
     lua_pushstring(L,ele->GetTagName().CString());
-    return 0;
+    return 1;
 }