Commit 7b760c80 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warning about possible null pointer dereference

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 51017c74
......@@ -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