summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-2
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/level-2')
-rw-r--r--starts/meaning-vm/level-2/funcs.cpp1
-rw-r--r--starts/meaning-vm/level-2/habits.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/starts/meaning-vm/level-2/funcs.cpp b/starts/meaning-vm/level-2/funcs.cpp
index 3ecedb3..b11413f 100644
--- a/starts/meaning-vm/level-2/funcs.cpp
+++ b/starts/meaning-vm/level-2/funcs.cpp
@@ -21,6 +21,7 @@ ref makehabit(ref name, std::initializer_list<ref> argnames, std::function<void(
ref habit = level1::a(concepts::habit, name);
ref infn = a(habit-information-needed);
habit.set(information-needed, infn);
+ //habit.set(concepts::habit, concepts::habit);
ref posinf = infn;
for (auto argname : argnames) {
ref nextinf = a(habit-information);
diff --git a/starts/meaning-vm/level-2/habits.cpp b/starts/meaning-vm/level-2/habits.cpp
index dfb9014..4900daf 100644
--- a/starts/meaning-vm/level-2/habits.cpp
+++ b/starts/meaning-vm/level-2/habits.cpp
@@ -189,12 +189,12 @@ int createhabits()
ahabit(list-entry-unmake, ((list-entry, le)),
{
ref prev = (list-entry-previous)(le);
- ref next = (list-entry-next)(le);
+ ref n = (list-entry-next)(le);
if (prev != nothing) {
- set(prev, "next", next);
+ set(prev, next, n);
}
if (next != nothing) {
- set(next, "previous", prev);
+ set(n, previous, prev);
}
(concept-unmake)(le);
});