Skip to content

Commit

Permalink
properly alloc strings for the old xae format
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Sep 22, 2019
1 parent 44fdc90 commit 631e694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IW5/Assets/XAnimParts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace ZoneTool

for (auto i = 0; i < anim->boneCount[9]; i++)
{
anim->tagnames[i] = SL_AllocString(FileSystem::ReadString(file, mem.get()));
anim->tagnames[i] = allocString(FileSystem::ReadString(file, mem.get()));
}

if (FileSystem::ReadInt(file))
Expand All @@ -48,7 +48,7 @@ namespace ZoneTool
fread(&anim->notetracks[i], sizeof(XAnimNotifyInfo), 1, file);

const char* str = FileSystem::ReadString(file, mem.get());
anim->notetracks[i].name = SL_AllocString(str);
anim->notetracks[i].name = allocString(str);
}
}

Expand Down

0 comments on commit 631e694

Please sign in to comment.