Fixes Arrow Crafting

* Fixes Old Blue Box failing to be crafted into arrows.
This commit is contained in:
aleos 2020-07-02 10:57:26 -04:00
parent 9d70b7c35f
commit 2a37f687d3

View File

@ -20443,7 +20443,7 @@ bool skill_arrow_create(struct map_session_data *sd, unsigned short nameid)
}
}
if (!idx || (j = pc_search_inventory(sd,nameid)) < 0)
if (idx < 0 || (j = pc_search_inventory(sd,nameid)) < 0)
return false;
pc_delitem(sd,j,1,0,0,LOG_TYPE_PRODUCE);