From dcf599bf1e8ab454780b895d0abd8da1a91728c6 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Mon, 22 Apr 2024 09:40:36 +1000 Subject: [PATCH] TEMP fix for question not being intransitory --- ActivityStore.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ActivityStore.cs b/ActivityStore.cs index 661a8df..df400da 100644 --- a/ActivityStore.cs +++ b/ActivityStore.cs @@ -154,9 +154,9 @@ public class ActivityStore { if (newActivity is IntransitiveActivity) { // intransitive activities go here IntransitiveActivity activity = (IntransitiveActivity)newActivity; - if (activity is Question) return Question((Question)activity); - else if (activity is Arrive) return Arrive((Arrive)activity); + if (activity is Arrive) return Arrive((Arrive)activity); else if (activity is Travel) return Travel((Travel)activity); + // else if (activity is Question) return Question((Question)activity); // TODO: Temporary until question is intransitory again else throw new InvalidOperationException($"Activity type '{activity.Type?.FirstOrDefault()}' is unrecognized"); } @@ -188,6 +188,7 @@ public class ActivityStore { else if (activity is TentativeReject) return TentativeReject((TentativeReject)activity); else if (activity is TentativeAccept) return TentativeAccept((TentativeAccept)activity); else if (activity is View) return View((View)activity); + else if (activity is Question) return Question((Question)activity); // TODO: Temporary until question is intransitory again else throw new InvalidOperationException($"Activity type '{activity.Type?.FirstOrDefault()}' is unrecognized"); } }