См. определение в файле ActionFoldEntityToSlot.c строка 28
Перекрестные ссылки ClearInventoryReservationEx(), g_Game, InventorySlots::GetSlotName(), ActionData::m_MainItem, ActionData::m_Player и m_SlotID.