aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-28 20:45:37 -0400
committerMatthew Hoops2011-09-28 20:45:37 -0400
commit1112b11df93805f763c0a44b392301bb7ea51ca1 (patch)
tree48c9889e93bc6208b12e28ec19d9f930819acd86
parent2e2f8d9168c5b945402559995c8fffed47ef5aae (diff)
downloadscummvm-rg350-1112b11df93805f763c0a44b392301bb7ea51ca1.tar.gz
scummvm-rg350-1112b11df93805f763c0a44b392301bb7ea51ca1.tar.bz2
scummvm-rg350-1112b11df93805f763c0a44b392301bb7ea51ca1.zip
PEGASUS: Fix valgrind warnings with the spots
-rwxr-xr-xengines/pegasus/neighborhood/spot.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/pegasus/neighborhood/spot.h b/engines/pegasus/neighborhood/spot.h
index 5d8f1504d6..38cc81d581 100755
--- a/engines/pegasus/neighborhood/spot.h
+++ b/engines/pegasus/neighborhood/spot.h
@@ -67,7 +67,15 @@ public:
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;