diff --git a/engines/hpl1/penumbra-overture/GameScripts.cpp b/engines/hpl1/penumbra-overture/GameScripts.cpp index 865a76b7970..5bf3dc117ec 100644 --- a/engines/hpl1/penumbra-overture/GameScripts.cpp +++ b/engines/hpl1/penumbra-overture/GameScripts.cpp @@ -754,7 +754,7 @@ static void ReplaceEntity(std::string asName, std::string asBodyName, return; } } else { - iPhysicsBody *pBody = pEntity->GetBody(0); + pBody = pEntity->GetBody(0); } cMatrixf mtxTransform = pBody->GetWorldMatrix();