diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 20:38:22 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 20:38:22 -0800 |
commit | 1b8c47a8b14f784f6605eee3a73713dbce6ca572 (patch) | |
tree | 9b7034b5e148ee8b0f9fbe0c6e89d7f9a656a27e /starts/meaning-vm/level-0/concept.cpp | |
parent | 3e3aeddec840fed915b0fa748dcd2f56d6f682ef (diff) | |
download | standingwithresilience-1b8c47a8b14f784f6605eee3a73713dbce6ca572.tar.gz standingwithresilience-1b8c47a8b14f784f6605eee3a73713dbce6ca572.zip |
changed level-0 allocation to use groups
Diffstat (limited to 'starts/meaning-vm/level-0/concept.cpp')
-rw-r--r-- | starts/meaning-vm/level-0/concept.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-0/concept.cpp b/starts/meaning-vm/level-0/concept.cpp index 9bb772d..0661edd 100644 --- a/starts/meaning-vm/level-0/concept.cpp +++ b/starts/meaning-vm/level-0/concept.cpp @@ -12,6 +12,7 @@ concept* concept::id() void concept::link(concept* type, concept* target) { + if (type == 0 || target == 0) { throw null_reference(); } links.insert({type, target}); } |