diff --git a/Assets/Scripts/InventoryStuff/DropHandling.cs b/Assets/Scripts/InventoryStuff/DropHandling.cs index e912243aa183b6682d4353fe2dfa49bb3482e737..d93622e69e9217a0f8e072dcd780d5a979100cc2 100644 --- a/Assets/Scripts/InventoryStuff/DropHandling.cs +++ b/Assets/Scripts/InventoryStuff/DropHandling.cs @@ -29,6 +29,7 @@ public void OnDrop(PointerEventData eventData) rect.anchorMax = new Vector2(0.5f, 0.5f); currentFact = eventData.pointerDrag.GetComponent<FactWrapper>().fact; + current.GetComponent<FactWrapper>().fact = currentFact; Debug.Log("recieved Fact: " + currentFact.Id); CommunicationEvents.NewAssignmentEvent.Invoke();