8000 fix bug in saving substitions of existing words · ChatScript/ChatScript@2365edc · GitHub
[go: up one dir, main page]

Skip to content

Commit 2365edc

Browse files
committed
fix bug in saving substitions of existing words
1 parent b3b1c3d commit 2365edc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

SRC/topicSystem.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,19 +2507,8 @@ unsigned int counter = 0;
25072507

25082508
uint64* PackBinWord(uint64* bindata, WORDP D, bool isnew)
25092509
{
2510-
if (!strcmp(D->word, "I"))
2511-
{
2512-
int xx = 0;
2513-
}
25142510
// remove any transient bits
25152511
D->systemFlags &= ((uint64)-1) ^ MARKED_WORD;
2516-
// unchanged old does not need writing out
2517-
if (!isnew && !(D->internalBits & BIT_CHANGED) && !(D->internalBits & QUERY_KIND) && *D->word != '$'
2518-
&& !D->subjectHead && !D->verbHead && !D->objectHead)
2519-
{
2520-
return bindata; // just referred to but already exists
2521-
}
2522-
25232512
D->internalBits &= -1 ^ (BIT_CHANGED | BEEN_HERE);
25242513
if (*D->word == '$') D->internalBits &= -1 ^ VAR_CHANGED;
25252514
++counter;

0 commit comments

Comments
 (0)
0