Skip to content

Commit 0ed9f09

Browse files
committed
making GetMeaning always return something valid
1 parent 6164449 commit 0ed9f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SRC/dictionarySystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ bool TraceHierarchyTest(int x)
111111
MEANING GetMeaning(WORDP D, int index)
112112
{
113113
MEANING* meanings = GetMeanings(D);
114-
return (meanings) ? meanings[index] : NULL;
114+
if (meanings) return meanings[index];
115+
else return MakeMeaning(D); // switch to generic non null meaning
115116
}
116117

117118
void RemoveConceptTopic(int list[256], WORDP D,int index)

0 commit comments

Comments
 (0)