Skip to content

Commit

Permalink
PEGASUS: Fix moving forward
Browse files Browse the repository at this point in the history
You know, actually initialize some variables :P
  • Loading branch information
Matthew Hoops committed Oct 4, 2011
1 parent 327ce7c commit 05668dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion engines/pegasus/neighborhood/door.h
Expand Up @@ -59,8 +59,16 @@ class DoorTable {
void clear();

struct Entry {
Entry() { movieStart = 0xffffffff; }
Entry() { clear(); }
bool isEmpty() { return movieStart == 0xffffffff; }
void clear() {
room = kNoRoomID;
direction = kNoDirection;
altCode = kNoAlternateID;
movieStart = 0xffffffff;
movieEnd = 0xffffffff;
flags = kNoDoorFlags;
}

tRoomID room;
tDirectionConstant direction;
Expand Down

0 comments on commit 05668dd

Please sign in to comment.