2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Proper scratch size computation for ANIM2/3

This commit is contained in:
Jack Andersen
2016-08-28 15:18:49 -10:00
parent 127b754691
commit 7953ca4828
4 changed files with 27 additions and 5 deletions

View File

@@ -479,7 +479,7 @@ BitstreamWriter::write(const std::vector<std::vector<Value>>& chanKeys,
vit = lastVals.begin();
for (const Channel& chan : channels)
{
const Value& val = (*kit)[f];
const Value& val = (*kit++)[f];
QuantizedValue& last = *vit++;
switch (chan.type)
{
@@ -517,7 +517,6 @@ BitstreamWriter::write(const std::vector<std::vector<Value>>& chanKeys,
}
default: break;
}
++kit;
}
}
return newData;