private void add(core.Hero hero, WidgetStackGrid list, core.Position2Object<GroupOfUnits> p2u)
	{
		if (hero.getUnits().size() >= 6 ) {
			QMessageBox.warning(this, "Nie można dodać", "W garnizonie jest już 6 jednostek");
		} else {
			core.UnitType type = (core.UnitType)this.unit.itemData(this.unit.currentIndex());
			
			int i = 0;
			for (core.GroupOfUnits u: hero.getUnits()) {
				if (u.type == type) {
					u.setNumber(u.getNumber() + num.value());
					list.getImageStack(i/3, i%3).setLayer(4, new gui.WidgetLabel(""+u.getNumber(), hero.getColor()));
					return;
				}
				++i;
			}
			i = hero.getUnits().size();
			core.GroupOfUnits u = new core.GroupOfUnits(type, hero, num.value());
			
			hero.getUnits().add(u);
			list.getImageStack(i/3, i%3).setLayer(3, new gui.WidgetImage(type.file));
			list.getImageStack(i/3, i%3).setLayer(4, new gui.WidgetLabel(""+num.value(), hero.getColor()));
			p2u.put(i/3, i%3, u);
		}
	}