From 1112b11df93805f763c0a44b392301bb7ea51ca1 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 28 Sep 2011 20:45:37 -0400 Subject: [PATCH] PEGASUS: Fix valgrind warnings with the spots --- engines/pegasus/neighborhood/spot.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engines/pegasus/neighborhood/spot.h b/engines/pegasus/neighborhood/spot.h index 5d8f1504d6c7..38cc81d581ec 100755 --- a/engines/pegasus/neighborhood/spot.h +++ b/engines/pegasus/neighborhood/spot.h @@ -67,7 +67,15 @@ class SpotTable { struct Entry { Entry() { clear(); } bool isEmpty() { return movieStart == 0xffffffff; } - void clear() { movieStart = 0xffffffff; } + void clear() { + room = kNoRoomID; + direction = kNoDirection; + srcFlags = kNoSpotFlags; + altCode = kNoAlternateID; + movieStart = 0xffffffff; + movieEnd = 0xffffffff; + dstFlags = kNoSpotFlags; + } tRoomID room; tDirectionConstant direction;