Fixed defaultEntry not being initialized after archiving

This commit is contained in:
smallmodel 2023-11-28 20:10:23 +01:00
parent b10ce9a426
commit e07dda6991
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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;