Fix use of temporary vector in utils/vrad/vraddetailprops.cpp.

This fixes a gcc compile error.
This commit is contained in:
Jonas 'Sortie' Termansen 2013-08-12 14:55:24 +02:00
parent 324b4f93dc
commit c5fb3851bb
2 changed files with 4 additions and 2 deletions

View file

@ -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 );

View file

@ -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 );