diff options
author | Eric Fry | 2018-06-28 22:20:36 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | fee1f3d8cb065182322bc80aba39a66a1b4b0cfb (patch) | |
tree | f152dd04ca1313d799d6edcc1d20ba5f789b52e0 /engines/illusions/sequenceopcodes.cpp | |
parent | 608f2f1f1ae524fd6ffc656dfcef3985988adaa9 (diff) | |
download | scummvm-rg350-fee1f3d8cb065182322bc80aba39a66a1b4b0cfb.tar.gz scummvm-rg350-fee1f3d8cb065182322bc80aba39a66a1b4b0cfb.tar.bz2 scummvm-rg350-fee1f3d8cb065182322bc80aba39a66a1b4b0cfb.zip |
ILLUSIONS: always use braces for loops
Diffstat (limited to 'engines/illusions/sequenceopcodes.cpp')
-rw-r--r-- | engines/illusions/sequenceopcodes.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/illusions/sequenceopcodes.cpp b/engines/illusions/sequenceopcodes.cpp index f2de9f2b2d..765247137f 100644 --- a/engines/illusions/sequenceopcodes.cpp +++ b/engines/illusions/sequenceopcodes.cpp @@ -56,8 +56,9 @@ typedef Common::Functor2Mem<Control*, OpCall&, void, SequenceOpcodes> SequenceOp void SequenceOpcodes::initOpcodes() { // First clear everything - for (uint i = 0; i < 256; ++i) + for (uint i = 0; i < 256; ++i) { _opcodes[i] = 0; + } // Register opcodes OPCODE(1, opYield); OPCODE(2, opSetFrameIndex); @@ -111,8 +112,9 @@ void SequenceOpcodes::initOpcodes() { #undef OPCODE void SequenceOpcodes::freeOpcodes() { - for (uint i = 0; i < 256; ++i) + for (uint i = 0; i < 256; ++i) { delete _opcodes[i]; + } } // Opcodes |