Frederic Bouvier wrote:

> When a c172 is on one machine, I only got segfault on an animation
> not found. This animation is named ControlsGroup and I guess
> that one object name referenced in this null animation no
> longer exist in the .ac model. I say that because the
> preceding one is analogous and works.
>
> So I would say the multiplayer works, except when there is a c172.

It seems that this animation refers to 'PanelInstruments' that is
a panel outside the model, so, when loaded with SGModelLib::load_model
the object is not found in the model and there is a non tested
read access through a null pointer in sgMakeAnimation.
This commit is contained in:
ehofman
2003-11-19 15:16:21 +00:00
parent 13a42f1d9e
commit 5f22c93db7

View File

@@ -150,6 +150,9 @@ sgMakeAnimation( ssgBranch * model,
} else {
object = model;
}
if ( animation == 0 )
return;
ssgBranch * branch = animation->getBranch();
splice_branch(branch, object);