From 58e89f81b2856fe3b7aed08c70272153aa16150e Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Thu, 27 Oct 2011 21:12:06 -0700 Subject: [PATCH] Fix an "address of temporary" error in plCluster. --- Sources/Plasma/PubUtilLib/plDrawable/plCluster.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plDrawable/plCluster.cpp b/Sources/Plasma/PubUtilLib/plDrawable/plCluster.cpp index 88d256f3..4d81bf09 100644 --- a/Sources/Plasma/PubUtilLib/plDrawable/plCluster.cpp +++ b/Sources/Plasma/PubUtilLib/plDrawable/plCluster.cpp @@ -205,8 +205,10 @@ void plCluster::UnPack(UInt8* vDst, UInt16* iDst, int idxOffset, hsBounds3Ext& w } } } - wBnd.Reset(&hsPoint3(minX, minY, minZ)); - wBnd.Union(&hsPoint3(maxX, maxY, maxZ)); + hsPoint3 min(minX, minY, minZ); + wBnd.Reset(&min); + hsPoint3 max(maxX, maxY, maxZ); + wBnd.Union(&max); }