Commit 4c7d77ad authored by DailyShana's avatar DailyShana

fix

parent f9ab9561
......@@ -343,8 +343,9 @@ int32 scriptlib::effect_get_property(lua_State *L) {
check_param(L, PARAM_TYPE_EFFECT, 1);
effect* peffect = *(effect**) lua_touserdata(L, 1);
if (peffect) {
lua_pushunsigned(L, peffect->flag);
return 1;
lua_pushunsigned(L, peffect->flag[0]);
lua_pushunsigned(L, peffect->flag[1]);
return 2;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment