Add a note now we can actually start working

This commit is contained in:
jordan4ibanez 2023-11-26 09:32:28 -05:00
parent 4aca3ee1c5
commit fadbb249c6
1 changed files with 2 additions and 1 deletions

View File

@ -141,6 +141,7 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
// Irrlicht doesn't null terminate the raw output. So we must doe it ourself.
buffer[file->getSize()] = '\0';
// We have to catch a JSON parse error or else the game will segfault.
json data;
try {
@ -167,7 +168,7 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
IAnimatedMesh* finalizedModel = parseModel(data);
return nullptr;
return finalizedModel;
}
} // namespace scene