summaryrefslogtreecommitdiff
path: root/src/resources/animation/animation.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-17 00:13:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-17 00:13:39 +0300
commit1322627754578721637fcd25c512ae9ce77836a3 (patch)
treec09ad80a84e94ccc245414f7bf69e3b24f7debc5 /src/resources/animation/animation.cpp
parent97b9d7cc85e82114b21c3316f671b37a9beb43c7 (diff)
downloadmanaverse-1322627754578721637fcd25c512ae9ce77836a3.tar.gz
manaverse-1322627754578721637fcd25c512ae9ce77836a3.tar.bz2
manaverse-1322627754578721637fcd25c512ae9ce77836a3.tar.xz
manaverse-1322627754578721637fcd25c512ae9ce77836a3.zip
Add missing const in animation.cpp
Diffstat (limited to 'src/resources/animation/animation.cpp')
-rw-r--r--src/resources/animation/animation.cpp8
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);
}