Skip to content

Commit

Permalink
PEGASUS: Fix valgrind warnings with the spots
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Sep 29, 2011
1 parent 2e2f8d9 commit 1112b11
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion engines/pegasus/neighborhood/spot.h
Expand Up @@ -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;
Expand Down

0 comments on commit 1112b11

Please sign in to comment.