mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
GRIM: Keyframe anims have null nodes sometimes.
This commit is contained in:
parent
6bca067e57
commit
cb257c400a
@ -100,8 +100,9 @@ void KeyframeAnim::loadBinary(const char *data, int len) {
|
||||
return;
|
||||
}
|
||||
if (_nodes[nodeNum]) {
|
||||
warning("The node %d was already allocated. %s", nodeNum, _fname.c_str());
|
||||
delete _nodes[nodeNum];
|
||||
// Null node. Usually 7, 13 and 27 are null nodes.
|
||||
data += 44;
|
||||
continue;
|
||||
}
|
||||
_nodes[nodeNum] = new KeyframeNode;
|
||||
_nodes[nodeNum]->loadBinary(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user