From 512dcfb9a1c04efc596b9c169e224a38ee18b188 Mon Sep 17 00:00:00 2001
From: baletiballo <75846481+baletiballo@users.noreply.github.com>
Date: Sat, 18 Jan 2025 17:47:20 +0100
Subject: [PATCH] actually store the rendered scroll in
 ActiveScroll..renderedScroll

---
 Assets/Scripts/InventoryStuff/ActiveScroll.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Assets/Scripts/InventoryStuff/ActiveScroll.cs b/Assets/Scripts/InventoryStuff/ActiveScroll.cs
index 1900d3b0..65e9ab69 100644
--- a/Assets/Scripts/InventoryStuff/ActiveScroll.cs
+++ b/Assets/Scripts/InventoryStuff/ActiveScroll.cs
@@ -77,6 +77,7 @@ public Scroll Scroll
         get => _Scroll;
         set {
             _Scroll = value;
+            RenderedScroll = value;
             
             // initialize the assignments dictionary with the references to the required fact slots as keys
             // and an empty SlotAssignment
@@ -352,7 +353,7 @@ private IEnumerator _SendAssignments()
 
         DynamicScrollInQue = true;
         while (!SendingViewDone)
-            yield return null; // if we don't wait => server will crash
+            yield return new WaitForSecondsRealtime(0.2f); // if we don't wait => server will crash
         DynamicScrollInQue = false;
 
         yield return SendView("/scroll/dynamic");
@@ -412,6 +413,7 @@ private void _ProcessScrollDynamicInfo(ScrollDynamicInfo scrollDynamicInfo)
 
         void _processRenderedScroll(Scroll rendered, List<string> hintUris)
         {
+            RenderedScroll = rendered;
             OnScrollDynamicInfoUpdated.Invoke(rendered);
 
             LatestRenderedHints = new();
-- 
GitLab