Browse Source

Fix a potential crash in pyVaultImageNode.

Fixes a crash which can occur when attempting to fetch
an unsupported image type.
Joseph Davies 13 years ago
parent
commit
08fa25a737
  1. 2
      Sources/Plasma/FeatureLib/pfPython/pyVaultImageNode.cpp

2
Sources/Plasma/FeatureLib/pfPython/pyVaultImageNode.cpp

@ -171,6 +171,8 @@ PyObject* pyVaultImageNode::Image_GetImage( void )
else else
fMipmapKey->RefObject(); fMipmapKey->RefObject();
} }
else
PYTHON_RETURN_NONE;
} }
return pyImage::New(fMipmap); return pyImage::New(fMipmap);

Loading…
Cancel
Save