mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-24 04:04:31 +00:00
Added missing fseek
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user