diff options
author | Nicola Mettifogo | 2007-08-16 17:28:18 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-16 17:28:18 +0000 |
commit | f0f46113ee103e922ecde5f32652a482899c7e61 (patch) | |
tree | f64d178e1ac84dc135fef556c4ba53b944a24fdf /engines/parallaction/commands.h | |
parent | c987d6aaf0744e088c3119d7270e8a02ad47044a (diff) | |
download | scummvm-rg350-f0f46113ee103e922ecde5f32652a482899c7e61.tar.gz scummvm-rg350-f0f46113ee103e922ecde5f32652a482899c7e61.tar.bz2 scummvm-rg350-f0f46113ee103e922ecde5f32652a482899c7e61.zip |
Changed more parsing routines to use tables instead of switch statements.
svn-id: r28637
Diffstat (limited to 'engines/parallaction/commands.h')
-rw-r--r-- | engines/parallaction/commands.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/parallaction/commands.h b/engines/parallaction/commands.h index 64510afc13..6db194d8c7 100644 --- a/engines/parallaction/commands.h +++ b/engines/parallaction/commands.h @@ -46,7 +46,7 @@ struct Animation; // TODO: turn this into a struct -union CommandData { +struct CommandData { uint32 _flags; Animation * _animation; Zone* _zone; @@ -60,9 +60,18 @@ union CommandData { CommandData() { _flags = 0; + _animation = 0; + _zone = 0; + _string = 0; + _callable = 0; + _object = 0; + _move._x = 0; + _move._y = 0; } ~CommandData() { + if (_string) + free(_string); } }; |