Commit d1e09e5a authored by VanillaSalt's avatar VanillaSalt

fix

parent c9e54f3b
...@@ -1859,7 +1859,7 @@ int32 scriptlib::card_is_can_be_fusion_material(lua_State *L) { ...@@ -1859,7 +1859,7 @@ int32 scriptlib::card_is_can_be_fusion_material(lua_State *L) {
card* pcard = *(card**) lua_touserdata(L, 1); card* pcard = *(card**) lua_touserdata(L, 1);
card* fcard = 0; card* fcard = 0;
uint32 ign = FALSE; uint32 ign = FALSE;
if(lua_gettop(L) >= 2) { if(lua_gettop(L) >= 2 && !lua_isnil(L, 2)) {
check_param(L, PARAM_TYPE_CARD, 2); check_param(L, PARAM_TYPE_CARD, 2);
fcard = *(card**)lua_touserdata(L, 2); fcard = *(card**)lua_touserdata(L, 2);
} }
......
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