1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 04:04:31 +00:00

Added missing fseek

This commit is contained in:
Bryan Roe
2019-01-18 14:58:13 -08:00
parent 4f5d3bcfe4
commit e5600ea6b0

View File

@@ -251,6 +251,10 @@ void ILibSimpleDataStore_RebuildKeyTable(ILibSimpleDataStore_Root *root)
if (count == 0)
{
ILibHashtable_ClearEx(root->keyTable, ILibSimpleDataStore_TableClear_Sink, root); // Wipe the key table, we will rebulit it
fseek(root->dataFile, 0, SEEK_SET); // See the start of the file
root->fileSize = -1; // Indicate we can't write to the data store
// Check if this is Legacy32 Format
count = 0;
while ((node = ILibSimpleDataStore_ReadNextRecord(root, 32)) != NULL)