This commit is contained in:
Federico Ponchio 2004-07-30 13:18:25 +00:00
parent ba21a8bce2
commit 2cfbd024d8
1 changed files with 3 additions and 1 deletions

View File

@ -76,8 +76,10 @@ void Nexus::Close() {
unsigned int size = index.size(); //size of index
fwrite(&size, sizeof(unsigned int), 1, index_file);
fwrite(&index[0], sizeof(Entry), size, index_file);
fwrite(&(index[0]), sizeof(Entry), size, index_file);
fclose(index_file);
index_file = NULL;
patches.Close();
borders.Close();
}