1.1 --- a/core/GameConfigs.cpp Sun Jul 08 02:59:08 2007 +0000
1.2 +++ b/core/GameConfigs.cpp Sun Jul 08 03:17:29 2007 +0000
1.3 @@ -190,11 +190,11 @@
1.4 strncopy(m_prop, value, sizeof(m_prop));
1.5 } else if (strcmp(key, PLATFORM_NAME) == 0) {
1.6 int val = atoi(value);
1.7 - sm_trie_insert(m_pOffsets, m_offset, (void *)val);
1.8 + sm_trie_replace(m_pOffsets, m_offset, (void *)val);
1.9 }
1.10 } else if (m_ParseState == PSTATE_GAMEDEFS_KEYS) {
1.11 int id = m_pStrings->AddString(value);
1.12 - sm_trie_insert(m_pKeys, key, (void *)id);
1.13 + sm_trie_replace(m_pKeys, key, (void *)id);
1.14 } else if (m_ParseState == PSTATE_GAMEDEFS_SUPPORTED) {
1.15 if (strcmp(key, "game") == 0
1.16 && strcmp(value, g_mod) == 0)
1.17 @@ -249,8 +249,8 @@
1.18 if (pProp)
1.19 {
1.20 int val = pProp->GetOffset();
1.21 - sm_trie_insert(m_pOffsets, m_offset, (void *)val);
1.22 - sm_trie_insert(m_pProps, m_offset, pProp);
1.23 + sm_trie_replace(m_pOffsets, m_offset, (void *)val);
1.24 + sm_trie_replace(m_pProps, m_offset, pProp);
1.25 } else {
1.26 /* Check if it's a non-default game and no offsets exist */
1.27 if (((strcmp(m_mod, "*") != 0) && strcmp(m_mod, "#default") != 0)
1.28 @@ -383,7 +383,7 @@
1.29 #if defined PLATFORM_LINUX
1.30 skip_find:
1.31 #endif
1.32 - sm_trie_insert(m_pSigs, m_offset, final_addr);
1.33 + sm_trie_replace(m_pSigs, m_offset, final_addr);
1.34 m_ParseState = PSTATE_GAMEDEFS_SIGNATURES;
1.35
1.36 break;