diff options
author | Matthew Hoops | 2011-10-03 23:27:48 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-03 23:27:48 -0400 |
commit | 05668dd6846345b2fd3abd0fd4a6f6675c7095ca (patch) | |
tree | 7cce55a7060e62a26c8829b365e0c28afb5d7f0a | |
parent | 327ce7c64b6dd5e572b9d14b001e4ad1808bc43f (diff) | |
download | scummvm-rg350-05668dd6846345b2fd3abd0fd4a6f6675c7095ca.tar.gz scummvm-rg350-05668dd6846345b2fd3abd0fd4a6f6675c7095ca.tar.bz2 scummvm-rg350-05668dd6846345b2fd3abd0fd4a6f6675c7095ca.zip |
PEGASUS: Fix moving forward
You know, actually initialize some variables :P
-rwxr-xr-x | engines/pegasus/neighborhood/door.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/pegasus/neighborhood/door.h b/engines/pegasus/neighborhood/door.h index d311656c1f..c670c6b956 100755 --- a/engines/pegasus/neighborhood/door.h +++ b/engines/pegasus/neighborhood/door.h @@ -59,8 +59,16 @@ public: 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; |