См. определение в файле GardenBase.c строка 1011
Перекрестные ссылки GardenBase::GetGardenSlotsCount() и UpdateSlotTexture().