|
From: <ha...@us...> - 2007-04-03 15:09:22
|
Revision: 1200
http://svn.sourceforge.net/crawl-ref/?rev=1200&view=rev
Author: haranp
Date: 2007-04-03 08:09:20 -0700 (Tue, 03 Apr 2007)
Log Message:
-----------
Eliminate a (spurious) valgrind warning.
Modified Paths:
--------------
trunk/crawl-ref/source/beam.cc
Modified: trunk/crawl-ref/source/beam.cc
===================================================================
--- trunk/crawl-ref/source/beam.cc 2007-04-03 14:56:07 UTC (rev 1199)
+++ trunk/crawl-ref/source/beam.cc 2007-04-03 15:09:20 UTC (rev 1200)
@@ -1292,8 +1292,11 @@
if ( pbolt.chose_ray )
ray = pbolt.ray;
else
+ {
+ ray.fullray_idx = -1; // to quiet valgrind
find_ray( pbolt.source_x, pbolt.source_y,
pbolt.target_x, pbolt.target_y, true, ray);
+ }
if ( !pbolt.aimed_at_feet )
ray.advance();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|