diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-17 00:13:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-17 00:13:39 +0300 |
commit | 1322627754578721637fcd25c512ae9ce77836a3 (patch) | |
tree | c09ad80a84e94ccc245414f7bf69e3b24f7debc5 | |
parent | 97b9d7cc85e82114b21c3316f671b37a9beb43c7 (diff) | |
download | mv-1322627754578721637fcd25c512ae9ce77836a3.tar.gz mv-1322627754578721637fcd25c512ae9ce77836a3.tar.bz2 mv-1322627754578721637fcd25c512ae9ce77836a3.tar.xz mv-1322627754578721637fcd25c512ae9ce77836a3.zip |
Add missing const in animation.cpp
-rw-r--r-- | src/resources/animation/animation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/animation/animation.cpp b/src/resources/animation/animation.cpp index 3b066da15..3b9619009 100644 --- a/src/resources/animation/animation.cpp +++ b/src/resources/animation/animation.cpp @@ -59,25 +59,25 @@ void Animation::addTerminator(const int rand) noexcept2 void Animation::addJump(const std::string &name, const int rand) noexcept2 { - Frame frame = { nullptr, 0, 0, 0, rand, FrameType::JUMP, name }; + const Frame frame = { nullptr, 0, 0, 0, rand, FrameType::JUMP, name }; mFrames.push_back(frame); } void Animation::addLabel(const std::string &name) noexcept2 { - Frame frame = { nullptr, 0, 0, 0, 100, FrameType::LABEL, name }; + const Frame frame = { nullptr, 0, 0, 0, 100, FrameType::LABEL, name }; mFrames.push_back(frame); } void Animation::addGoto(const std::string &name, const int rand) noexcept2 { - Frame frame = { nullptr, 0, 0, 0, rand, FrameType::GOTO, name }; + const Frame frame = { nullptr, 0, 0, 0, rand, FrameType::GOTO, name }; mFrames.push_back(frame); } void Animation::addPause(const int delay, const int rand) noexcept2 { - Frame frame = { nullptr, delay, 0, 0, rand, FrameType::PAUSE, "" }; + const Frame frame = { nullptr, delay, 0, 0, rand, FrameType::PAUSE, "" }; mFrames.push_back(frame); } |