Fix the error that the default value of `a` should be 255 when converting a color3b_table into cocos2d::Color4B,

This commit is contained in:
samuele3hu 2015-04-17 17:40:28 +08:00
parent e3463d23a8
commit 9aadc2a993
1 changed files with 1 additions and 1 deletions

View File

@ -630,7 +630,7 @@ bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue, const char* funcNa
lua_pushstring(L, "a");
lua_gettable(L,lo);
outValue->a = lua_isnil(L,-1) ? 0 : lua_tonumber(L,-1);
outValue->a = lua_isnil(L,-1) ? 255 : lua_tonumber(L,-1);
lua_pop(L,1);
}