Commit feaa7d2a authored by Chen Bill's avatar Chen Bill Committed by GitHub

fix warning (#629)

parent ed7e69cd
...@@ -3125,7 +3125,7 @@ int32 scriptlib::card_is_immune_to_effect(lua_State *L) { ...@@ -3125,7 +3125,7 @@ int32 scriptlib::card_is_immune_to_effect(lua_State *L) {
check_param(L, PARAM_TYPE_EFFECT, 2); check_param(L, PARAM_TYPE_EFFECT, 2);
card* pcard = *(card**) lua_touserdata(L, 1); card* pcard = *(card**) lua_touserdata(L, 1);
effect* peffect = *(effect**) lua_touserdata(L, 2); effect* peffect = *(effect**) lua_touserdata(L, 2);
lua_pushboolean(L, !pcard->is_affect_by_effect(peffect)); lua_pushboolean(L, (int)!pcard->is_affect_by_effect(peffect));
return 1; return 1;
} }
int32 scriptlib::card_is_can_be_disabled_by_effect(lua_State* L) { int32 scriptlib::card_is_can_be_disabled_by_effect(lua_State* L) {
......
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