mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 06:00:48 +00:00
Added code for ~Command().
svn-id: r26402
This commit is contained in:
parent
1e1ba32c0a
commit
17bcfbf89d
@ -199,10 +199,7 @@ void Parallaction::freeCommands(Command *list) {
|
||||
|
||||
while (cmd) {
|
||||
Command *v4 = (Command*)cmd->_next;
|
||||
|
||||
if (cmd->_id == CMD_LOCATION) free(cmd->u._string);
|
||||
delete cmd;
|
||||
|
||||
cmd = v4;
|
||||
}
|
||||
|
||||
@ -348,6 +345,18 @@ void Parallaction::runCommands(Command *list, Zone *z) {
|
||||
|
||||
}
|
||||
|
||||
Command::Command() {
|
||||
_id = 0;
|
||||
_flagsOn = 0;
|
||||
_flagsOff = 0;
|
||||
}
|
||||
|
||||
Command::~Command() {
|
||||
|
||||
if (_id == CMD_LOCATION) free(u._string);
|
||||
|
||||
}
|
||||
|
||||
} // namespace Parallaction
|
||||
|
||||
|
||||
|
@ -68,15 +68,8 @@ struct Command : public Node {
|
||||
uint32 _flagsOn;
|
||||
uint32 _flagsOff;
|
||||
|
||||
Command() {
|
||||
_id = 0;
|
||||
_flagsOn = 0;
|
||||
_flagsOff = 0;
|
||||
}
|
||||
|
||||
~Command() {
|
||||
|
||||
}
|
||||
Command();
|
||||
~Command();
|
||||
};
|
||||
|
||||
} // namespace Parallaction
|
||||
|
Loading…
x
Reference in New Issue
Block a user