|
From: <jom...@us...> - 2013-04-26 20:12:18
|
Revision: 1727
http://sourceforge.net/p/jason/svn/1727
Author: jomifred
Date: 2013-04-26 20:12:17 +0000 (Fri, 26 Apr 2013)
Log Message:
-----------
fix a small bug in self .suspend
Modified Paths:
--------------
trunk/src/jason/stdlib/create_agent.java
trunk/src/jason/stdlib/suspend.java
Modified: trunk/src/jason/stdlib/create_agent.java
===================================================================
--- trunk/src/jason/stdlib/create_agent.java 2013-04-17 20:43:17 UTC (rev 1726)
+++ trunk/src/jason/stdlib/create_agent.java 2013-04-26 20:12:17 UTC (rev 1727)
@@ -107,8 +107,6 @@
name = ((StringTerm)args[0]).getString();
else
name = args[0].toString();
-
-
StringTerm source = (StringTerm)args[1];
Modified: trunk/src/jason/stdlib/suspend.java
===================================================================
--- trunk/src/jason/stdlib/suspend.java 2013-04-17 20:43:17 UTC (rev 1726)
+++ trunk/src/jason/stdlib/suspend.java 2013-04-26 20:12:17 UTC (rev 1727)
@@ -98,7 +98,7 @@
Intention i = C.getSelectedIntention();
suspendIntention = true;
i.setSuspended(true);
- C.addPendingIntention(SELF_SUSPENDED_INT, i);
+ C.addPendingIntention(SELF_SUSPENDED_INT+i.getId(), i);
return true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|