diff options
author | Torbjörn Andersson | 2015-01-26 22:14:26 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2015-01-26 22:18:23 +0100 |
commit | 8c8261aa2a381c3e7f12c5dd0aaf33a69e1f7eb3 (patch) | |
tree | b42ce79c59dcb3ad8e0e063642004344d4f2f5b5 /engines/zvision | |
parent | dd5cd42f2eff7ca320fe507916b65a06c3a0ee74 (diff) | |
download | scummvm-rg350-8c8261aa2a381c3e7f12c5dd0aaf33a69e1f7eb3.tar.gz scummvm-rg350-8c8261aa2a381c3e7f12c5dd0aaf33a69e1f7eb3.tar.bz2 scummvm-rg350-8c8261aa2a381c3e7f12c5dd0aaf33a69e1f7eb3.zip |
ZVISION: Cleanup.
We usually don't check a pointer before deleting it.
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index d851a74dec..5238561149 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -79,8 +79,7 @@ ActionAssign::ActionAssign(ZVision *engine, int32 slotkey, const Common::String } ActionAssign::~ActionAssign() { - if (_value) - delete _value; + delete _value; } bool ActionAssign::execute() { @@ -804,8 +803,7 @@ ActionRandom::ActionRandom(ZVision *engine, int32 slotkey, const Common::String } ActionRandom::~ActionRandom() { - if (_max) - delete _max; + delete _max; } bool ActionRandom::execute() { @@ -1044,8 +1042,7 @@ ActionTimer::ActionTimer(ZVision *engine, int32 slotkey, const Common::String &l } ActionTimer::~ActionTimer() { - if (_time) - delete _time; + delete _time; _engine->getScriptManager()->killSideFx(_slotKey); } |