Commit 3a68975f authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warning about possible null pointer dereference



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14467 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a8505c85
......@@ -290,6 +290,7 @@ void SkeletalAnimationPlugin::slotAnimationNameChanged() {
SkeletonObject* skeletonObject = dynamic_cast<SkeletonObject*>(baseObject);
if(!skeletonObject) continue;
Skeleton* skeleton = PluginFunctions::skeleton(skeletonObject);
if(!skeleton) continue;
AnimationHandle h = skeleton->animationHandle(pToolbox_->cbAnimation->currentText().toStdString());
if(skeleton != 0 && h.isValid()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment