aboutsummaryrefslogtreecommitdiff
path: root/mp/src
diff options
context:
space:
mode:
authorJonas 'Sortie' Termansen <[email protected]>2013-08-12 14:55:24 +0200
committerJonas 'Sortie' Termansen <[email protected]>2013-08-12 22:53:16 +0200
commitc5fb3851bb7650e3d83857f89555134acc36283f (patch)
tree7717c9e76974019c232d7b64da2f02d0f8447b47 /mp/src
parentFix bad class declaration in utils/vbsp/ivp. (diff)
downloadsource-sdk-2013-c5fb3851bb7650e3d83857f89555134acc36283f.tar.xz
source-sdk-2013-c5fb3851bb7650e3d83857f89555134acc36283f.zip
Fix use of temporary vector in utils/vrad/vraddetailprops.cpp.
This fixes a gcc compile error.
Diffstat (limited to 'mp/src')
-rw-r--r--mp/src/utils/vrad/vraddetailprops.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mp/src/utils/vrad/vraddetailprops.cpp b/mp/src/utils/vrad/vraddetailprops.cpp
index 6712beb1..822bc78c 100644
--- a/mp/src/utils/vrad/vraddetailprops.cpp
+++ b/mp/src/utils/vrad/vraddetailprops.cpp
@@ -524,7 +524,8 @@ private:
bool TestPointAgainstSkySurface( Vector const &pt, dface_t *pFace )
{
// Create sky face winding.
- winding_t *pWinding = WindingFromFace( pFace, Vector( 0.0f, 0.0f, 0.0f ) );
+ Vector v( 0.0f, 0.0f, 0.0f );
+ winding_t *pWinding = WindingFromFace( pFace, v );
// Test point in winding. (Since it is at the node, it is in the plane.)
bool bRet = PointInWinding( pt, pWinding );