fixed a small bug where trie replace didn't always work
authorDavid Anderson <dvander@alliedmods.net>
Sun Jul 08 04:36:14 2007 +0000 (2007-07-08)
changeset 106003a042d4d608
parent 1059 255bb3a2f47b
child 1061 2f4060d4bf2e
fixed a small bug where trie replace didn't always work
core/sm_trie.cpp
     1.1 --- a/core/sm_trie.cpp	Sun Jul 08 04:15:00 2007 +0000
     1.2 +++ b/core/sm_trie.cpp	Sun Jul 08 04:36:14 2007 +0000
     1.3 @@ -623,7 +623,7 @@
     1.4  				/* Do an initial browsing to make sure they're not the same string */
     1.5  				if (strcmp(keyptr, term) == 0)
     1.6  				{
     1.7 -					if (!node->valset)
     1.8 +					if (!node->valset || replace_allowed)
     1.9  					{
    1.10  						node->valset = true;
    1.11  						node->value = value;