From 37ad776b9c8578dc82a56d19603754ef1cc4bea4 Mon Sep 17 00:00:00 2001
From: Patrick Hammer <patham9@gmail.com>
Date: Wed, 11 Apr 2018 10:55:38 -0400
Subject: [PATCH] All NAL8 testcases working. Don't loose timing information
 specifity (not using termlink here!!)

---
 nal/test/nal8.1.19.nal                   | 2 +-
 nars_core/nars/inference/RuleTables.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nal/test/nal8.1.19.nal b/nal/test/nal8.1.19.nal
index bd66b1061e..42ae0f6d8c 100755
--- a/nal/test/nal8.1.19.nal
+++ b/nal/test/nal8.1.19.nal
@@ -1,5 +1,5 @@
 ********** [03 + 28 -> 30]
-<(&/,<(*,SELF,{t002}) --> hold>,<(*,SELF,{t001}) --> at>,(^open,{SELF},{t001}))=/><{t001} --> [opened]>>. %1.00;0.90% {0 : 1} 
+<(&/,<(*,SELF,{t002}) --> hold>,<(*,SELF,{t001}) --> at>,(^open,{SELF},{t001})) =/> <{t001} --> [opened]>>. %1.00;0.90%
 <(*,SELF,{t002}) --> hold>. :|: 
 200
 ''outputMustContain('<(&/,<(*,SELF,{t001}) --> at>,(^open,{SELF},{t001})) =/> <{t001} --> [opened]>>. %1.00;0.43%')
diff --git a/nars_core/nars/inference/RuleTables.java b/nars_core/nars/inference/RuleTables.java
index 1506bc6934..6e55776915 100644
--- a/nars_core/nars/inference/RuleTables.java
+++ b/nars_core/nars/inference/RuleTables.java
@@ -267,7 +267,7 @@ public class RuleTables {
             Operation op = (Operation) taskTerm;
             if(op.getPredicate() == nal.memory.getOperator("^want")) {
                 TruthValue newTruth = TruthFunctions.deduction(task.sentence.truth, Parameters.reliance);
-                nal.singlePremiseTask(beliefTerm, Symbols.GOAL_MARK, newTruth, BudgetFunctions.forward(newTruth, nal));
+                nal.singlePremiseTask(((Operation)taskTerm).getArguments().term[1], Symbols.GOAL_MARK, newTruth, BudgetFunctions.forward(newTruth, nal));
             }
         }
     }
-- 
GitLab