Commit 47af86f6 authored by nanahira's avatar nanahira

Merge branch 'fh'

parents 7e0dad11 35888392
......@@ -76,7 +76,7 @@ int32 scriptlib::effect_reset(lua_State *L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_EFFECT, 1);
effect* peffect = *(effect**) lua_touserdata(L, 1);
if(peffect->owner == 0)
if(peffect->owner == 0 || peffect->handler == 0)
return 0;
if(peffect->is_flag(EFFECT_FLAG_FIELD_ONLY))
peffect->pduel->game_field->remove_effect(peffect);
......
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