Commit da09ab81 authored by VanillaSalt's avatar VanillaSalt

fix

parent 875d8b77
...@@ -1667,6 +1667,8 @@ int32 scriptlib::duel_get_chain_info(lua_State *L) { ...@@ -1667,6 +1667,8 @@ int32 scriptlib::duel_get_chain_info(lua_State *L) {
uint32 args = lua_gettop(L) - 1; uint32 args = lua_gettop(L) - 1;
duel* pduel = interpreter::get_duel_info(L); duel* pduel = interpreter::get_duel_info(L);
chain* ch = pduel->game_field->get_chain(c); chain* ch = pduel->game_field->get_chain(c);
if(!ch)
return 0;
for(uint32 i = 0; i < args; ++i) { for(uint32 i = 0; i < args; ++i) {
flag = lua_tointeger(L, 2 + i); flag = lua_tointeger(L, 2 + i);
switch(flag) { switch(flag) {
......
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