[Scummvm-git-logs] scummvm master -> da21afd83051f1dd6fb33d7b0a5250590378a781

elasota noreply at scummvm.org
Sun Jul 14 05:16:05 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
da21afd830 MTROPOLIS: Fix parent indirection bugfix not working with indexed attribs


Commit: da21afd83051f1dd6fb33d7b0a5250590378a781
    https://github.com/scummvm/scummvm/commit/da21afd83051f1dd6fb33d7b0a5250590378a781
Author: elasota (1137273+elasota at users.noreply.github.com)
Date: 2024-07-14T01:15:50-04:00

Commit Message:
MTROPOLIS: Fix parent indirection bugfix not working with indexed attribs

Changed paths:
    engines/mtropolis/runtime.cpp


diff --git a/engines/mtropolis/runtime.cpp b/engines/mtropolis/runtime.cpp
index 11b2d881eef..65269583b46 100644
--- a/engines/mtropolis/runtime.cpp
+++ b/engines/mtropolis/runtime.cpp
@@ -2929,7 +2929,7 @@ MiniscriptInstructionOutcome RuntimeObject::ParentWriteProxyInterface::refAttrib
 		return kMiniscriptInstructionOutcomeFailed;
 
 	DynamicValueWriteProxy tempProxy;
-	DynamicValueWriteObjectHelper::create(static_cast<RuntimeObject *>(parent), tempProxy);
+	DynamicValueWriteObjectHelper::create(parent, tempProxy);
 
 	return tempProxy.pod.ifc->refAttrib(thread, proxy, tempProxy.pod.objectRef, tempProxy.pod.ptrOrOffset, attrib);
 }
@@ -2941,7 +2941,7 @@ MiniscriptInstructionOutcome RuntimeObject::ParentWriteProxyInterface::refAttrib
 		return kMiniscriptInstructionOutcomeFailed;
 
 	DynamicValueWriteProxy tempProxy;
-	DynamicValueWriteObjectHelper::create(static_cast<RuntimeObject *>(objectRef), tempProxy);
+	DynamicValueWriteObjectHelper::create(parent, tempProxy);
 
 	return tempProxy.pod.ifc->refAttribIndexed(thread, proxy, tempProxy.pod.objectRef, tempProxy.pod.ptrOrOffset, attrib, index);
 }




More information about the Scummvm-git-logs mailing list