From 05668dd6846345b2fd3abd0fd4a6f6675c7095ca Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 3 Oct 2011 23:27:48 -0400 Subject: [PATCH] PEGASUS: Fix moving forward You know, actually initialize some variables :P --- engines/pegasus/neighborhood/door.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engines/pegasus/neighborhood/door.h b/engines/pegasus/neighborhood/door.h index d311656c1f27..c670c6b956f5 100755 --- a/engines/pegasus/neighborhood/door.h +++ b/engines/pegasus/neighborhood/door.h @@ -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;