Skip to content

Commit bf52404

Browse files
committed
issue #69: fix crash when iterating over facts from template object
1 parent 0157415 commit bf52404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clips/facts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def facts(self) -> iter:
280280
"""Iterate over the asserted Facts belonging to this Template."""
281281
fact = lib.GetNextFactInTemplate(self._ptr(), ffi.NULL)
282282
while fact != ffi.NULL:
283-
yield new_fact(self._ptr(), fact)
283+
yield new_fact(self._env, fact)
284284

285285
fact = lib.GetNextFactInTemplate(self._ptr(), fact)
286286

0 commit comments

Comments
 (0)