//---------------------------------------------------
void CCharacterVersionAdapter::adaptToVersion9(CCharacter &character) const
{
//	for (int i = 0; i < MAX_INVENTORY_ANIMAL; i++)
	for (int i = INVENTORIES::pet_animal; i < INVENTORIES::max_pet_animal; i++)
	{
//		CGameItem * petInv = *character._Inventory[INVENTORIES::pet_animal + i];
		CInventoryPtr petInv = character._Inventory[INVENTORIES::TInventory(i)];
		if (!petInv)
			continue;
//		if (petInv->getChildren().size() < 256)
		// TODO : still needed ?
		if (petInv->getSlotCount() < 256)
		{
//			petInv->getChildren().resize(256, NULL);
			petInv->setSlotCount(256);
//			petInv->SlotCount = 256;
		}
	}
}