From a170c19fb66c8770ed0d17a7bcfee35d88f85e28 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 3 Sep 2022 18:47:14 +0100 Subject: [PATCH] HPL1: Fix Bug in Game Script Functions Causing GCC Shadowing Warning --- engines/hpl1/penumbra-overture/GameScripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();