diff --git a/Adventurer/Advent - Game.cs b/Adventurer/Advent - Game.cs
index 630bd85..0ba3eae 100644
--- a/Adventurer/Advent - Game.cs
+++ b/Adventurer/Advent - Game.cs
@@ -463,7 +463,7 @@ private static void SearchActions(int pVerb, int pNoun)
if (parentOutcome = ExcecuteAction(act))
{
if (act.Children != null)
- act.Children.All(ch => { ExcecuteAction(ch); return true; });
+ ChildActions(act.Children);
}
//do more stuff
@@ -523,8 +523,20 @@ private static void SearchActions(int pVerb, int pNoun)
//DisableUserInput(false);
PerformActionComponent(64, 0, 0); //look
+ }
-
+ ///
+ /// recurse through any children
+ ///
+ ///
+ private static void ChildActions (Adventurer.GameData.Action[] pActions)
+ {
+ foreach (Adventurer.GameData.Action c in pActions)
+ {
+ ExcecuteAction(c);
+ if (c.Children != null)
+ ChildActions(c.Children);
+ }
}
///