Skip to content

Commit

Permalink
fix lua_yield nresults
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Apr 30, 2024
1 parent 7c4c0a0 commit deaf360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libduel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3220,7 +3220,7 @@ int32 scriptlib::duel_select_synchro_material(lua_State *L) {
lua_pushvalue(L, 4);
lua_pushvalue(L, 2);
lua_xmove(L, pduel->lua->lua_state, 3);
return lua_yield(L, 3);
return lua_yield(L, 0);
}
int32 scriptlib::duel_check_synchro_material(lua_State *L) {
check_param_count(L, 5);
Expand Down Expand Up @@ -3280,7 +3280,7 @@ int32 scriptlib::duel_select_tuner_material(lua_State *L) {
lua_pushvalue(L, 5);
lua_pushvalue(L, 2);
lua_xmove(L, pduel->lua->lua_state, 3);
return lua_yield(L, 3);
return lua_yield(L, 0);
}
int32 scriptlib::duel_check_tuner_material(lua_State *L) {
check_param_count(L, 6);
Expand Down

0 comments on commit deaf360

Please sign in to comment.