diff options
Diffstat (limited to 'engines/parallaction/commands.h')
-rw-r--r-- | engines/parallaction/commands.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/parallaction/commands.h b/engines/parallaction/commands.h index 046f413469..40c5c1b626 100644 --- a/engines/parallaction/commands.h +++ b/engines/parallaction/commands.h @@ -34,6 +34,7 @@ enum CommandFlags { kFlagsGlobal = 0x40000000 }; +// TODO: turn this into a struct union CommandData { uint32 _flags; Animation * _animation; @@ -45,6 +46,10 @@ union CommandData { int16 _x; int16 _y; } _move; + + CommandData() { + _flags = 0; + } }; struct Command : public Node { @@ -53,6 +58,11 @@ struct Command : public Node { uint32 _flagsOn; uint32 _flagsOff; + Command() { + _id = 0; + _flagsOn = 0; + _flagsOff = 0; + } }; } // namespace Parallaction |