mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
Restore animations reading when first animation header n = 0.
This commit is contained in:
parent
649fb9fb97
commit
c2565c4cb5
1 changed files with 4 additions and 0 deletions
|
|
@ -265,6 +265,10 @@ void animation::load(const buffer &b)
|
|||
READ_STRING_N(b, name, 0xC);
|
||||
for (auto &s : segments)
|
||||
s.loadHeader(b);
|
||||
// do not remove!
|
||||
// if first segment has n = 0, we do not read anything
|
||||
if (segments[0].n == 0)
|
||||
return;
|
||||
for (auto &s : segments)
|
||||
s.loadData(b);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue