diff options
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 3f3e171..3821a7b 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1122,7 +1122,7 @@ struct _simList | |||
1122 | { | 1122 | { |
1123 | int len, num; | 1123 | int len, num; |
1124 | char **sims; | 1124 | char **sims; |
1125 | qtreetbl_t *byTab, *simsLua, *unsorted; | 1125 | qtreetbl_t *byTab, *simsLua, *unsorted, *byUUID; |
1126 | // Stuff for the looping through sims, doing things, and waiting. | 1126 | // Stuff for the looping through sims, doing things, and waiting. |
1127 | int doIt; | 1127 | int doIt; |
1128 | float la; | 1128 | float la; |
@@ -1306,6 +1306,7 @@ void simNotFound(simData *simd, char *sim, char *type, int count, int window, in | |||
1306 | simd->sizeZ = getIntFromIni(ini, "Region.SizeZ"); | 1306 | simd->sizeZ = getIntFromIni(ini, "Region.SizeZ"); |
1307 | // TODO - store a pointer instead of multiple copies of the data. | 1307 | // TODO - store a pointer instead of multiple copies of the data. |
1308 | ourSims->byTab->put(ourSims->byTab, sim, simd, sizeof(simData)); | 1308 | ourSims->byTab->put(ourSims->byTab, sim, simd, sizeof(simData)); |
1309 | ourSims->byUUID->put(ourSims->byUUID, simd->UUID, simd, sizeof(simData)); | ||
1309 | if (strcmp("unsorted", type) == 0) | 1310 | if (strcmp("unsorted", type) == 0) |
1310 | ourSims->unsorted->put(ourSims->unsorted, sim, simd, sizeof(simData)); | 1311 | ourSims->unsorted->put(ourSims->unsorted, sim, simd, sizeof(simData)); |
1311 | ini->free(ini); | 1312 | ini->free(ini); |
@@ -1352,6 +1353,7 @@ void freeSimList(simList *sims) | |||
1352 | sims->byTab->free(sims->byTab); | 1353 | sims->byTab->free(sims->byTab); |
1353 | freeLuaTree(sims->simsLua); | 1354 | freeLuaTree(sims->simsLua); |
1354 | freeLuaTree(sims->unsorted); | 1355 | freeLuaTree(sims->unsorted); |
1356 | freeLuaTree(sims->byUUID); | ||
1355 | free(sims->target); | 1357 | free(sims->target); |
1356 | free(sims->backup); | 1358 | free(sims->backup); |
1357 | 1359 | ||
@@ -1371,6 +1373,7 @@ simList *getSims() | |||
1371 | ourSims = xzalloc(sizeof(simList)); | 1373 | ourSims = xzalloc(sizeof(simList)); |
1372 | ourSims->byTab = qtreetbl(0); | 1374 | ourSims->byTab = qtreetbl(0); |
1373 | ourSims->unsorted = qtreetbl(0); | 1375 | ourSims->unsorted = qtreetbl(0); |
1376 | ourSims->byUUID = qtreetbl(0); | ||
1374 | ourSims->doIt = FALSE; | 1377 | ourSims->doIt = FALSE; |
1375 | 1378 | ||
1376 | // Read or create simsLua | 1379 | // Read or create simsLua |