BGE animations: Fixing a potential crash when using camera IPOs. The IPOs were being...
authorMitchell Stokes <mogurijin@gmail.com>
Sun, 4 Sep 2011 01:27:16 +0000 (01:27 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sun, 4 Sep 2011 01:27:16 +0000 (01:27 +0000)
source/gameengine/Converter/KX_IpoConvert.cpp

index 0ee99f5335b3114dd33ae8fb1093202dccea4690..b13dbe324f5e1f5ad12086ec39e6ef6c80d4855b 100644 (file)
@@ -257,7 +257,7 @@ SG_Controller *BL_CreateCameraIPO(struct bAction *action, KX_GameObject*  camera
        ipocontr->m_clipstart = blendercamera->clipsta;
        ipocontr->m_clipend = blendercamera->clipend;
 
-       BL_InterpolatorList *adtList= GetAdtList(blendercamera->adt->action, converter);
+       BL_InterpolatorList *adtList= GetAdtList(action, converter);
 
        // For each active channel in the adtList add an
        // interpolator to the game object.