Turned pet db into a dynamic map (#2727)

Thanks to @Jeybla, @lighta and @aleos89
This commit is contained in:
Lemongrass3110
2018-01-01 22:57:47 +01:00
committed by GitHub
parent ef651df6a4
commit fb966a12e0
7 changed files with 150 additions and 162 deletions

View File

@@ -2026,7 +2026,7 @@ uint8 npc_selllist(struct map_session_data* sd, int n, unsigned short *item_list
if( sd->inventory_data[idx]->type == IT_PETEGG && sd->inventory.u.items_inventory[idx].card[0] == CARD0_PET )
{
if( search_petDB_index(sd->inventory.u.items_inventory[idx].nameid, PET_EGG) >= 0 )
if( pet_db_search(sd->inventory.u.items_inventory[idx].nameid, PET_EGG) )
{
intif_delete_petdata(MakeDWord(sd->inventory.u.items_inventory[idx].card[1], sd->inventory.u.items_inventory[idx].card[2]));
}