diff options
| -rw-r--r-- | src/project.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/project.cpp b/src/project.cpp index a27daba..9d84ea0 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -140,12 +140,12 @@ void Proj_DeserializeProjectSettings(std::istream &stream) { continue; } if (strncmp(projReadLine, PKE_PROJ_FILE_PROJ_SETTINGS_SCENES_BEGIN, strlen(PKE_PROJ_FILE_PROJ_SETTINGS_SCENES_BEGIN)) == 0) { - DynArray<pkstr> sceneFiles{16}; + pk_arr_t<pk_str> sceneFiles; while (memset(projReadLine, 0, projReadLineLength), stream.getline(projReadLine, projReadLineLength)) { if (strcmp(PKE_PROJ_FILE_PROJ_SETTINGS_SCENES_END, projReadLine) == 0) { - pkeProjectSettings.sceneCount = sceneFiles.Count(); - pkeProjectSettings.scenes = pk_new<cpkstr>(sceneFiles.Count()); - memcpy(reinterpret_cast<void *>(pkeProjectSettings.scenes), reinterpret_cast<void *>(sceneFiles.GetPtr()), sizeof(cpkstr) * sceneFiles.Count()); + pkeProjectSettings.sceneCount = sceneFiles.next; + pkeProjectSettings.scenes = pk_new<pk_cstr>(sceneFiles.next); + memcpy(reinterpret_cast<void *>(pkeProjectSettings.scenes), reinterpret_cast<void *>(sceneFiles.data), sizeof(pk_cstr) * sceneFiles.next); break; } pkeProjectSettings.sceneCount += 1; |
