mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fixed defaultEntry not being initialized after archiving
This commit is contained in:
parent
b10ce9a426
commit
e07dda6991
1 changed files with 3 additions and 1 deletions
|
@ -276,7 +276,7 @@ void Container<Type>::Archive(Archiver& arc)
|
|||
template<typename key, typename value>
|
||||
void con_set<key, value>::Archive(Archiver& arc)
|
||||
{
|
||||
Entry *e;
|
||||
Entry *e = NULL;
|
||||
int hash;
|
||||
int i;
|
||||
|
||||
|
@ -300,6 +300,8 @@ void con_set<key, value>::Archive(Archiver& arc)
|
|||
e->next = table[hash];
|
||||
table[hash] = e;
|
||||
}
|
||||
|
||||
defaultEntry = e;
|
||||
} else {
|
||||
#ifndef NDEBUG
|
||||
int total;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue