diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_MaterialIpoController.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_MaterialIpoController.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/gameengine/Ketsji/KX_MaterialIpoController.cpp b/source/gameengine/Ketsji/KX_MaterialIpoController.cpp index d7a1406b507..c0757a32b9c 100644 --- a/source/gameengine/Ketsji/KX_MaterialIpoController.cpp +++ b/source/gameengine/Ketsji/KX_MaterialIpoController.cpp @@ -75,10 +75,10 @@ SG_Controller* KX_MaterialIpoController::GetReplica(class SG_Node* destnode) iporeplica->AddInterpolator(copyipo); MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget(); - int orgbase = (int)this; - int orgloc = (int)scaal; - int offset = orgloc-orgbase; - int newaddrbase = (int)iporeplica + offset; + long orgbase = (long)this; + long orgloc = (long)scaal; + long offset = orgloc-orgbase; + long newaddrbase = (long)iporeplica + offset; MT_Scalar* blaptr = (MT_Scalar*) newaddrbase; copyipo->SetNewTarget((MT_Scalar*)blaptr); } @@ -94,4 +94,5 @@ KX_MaterialIpoController::~KX_MaterialIpoController() delete (*i); } -}
\ No newline at end of file +} + |