summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-17 00:14:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-17 03:20:49 +0300
commit56a2df097e5e4979884395f341d4e1c8bfcf7ba8 (patch)
treec8c02c10af910ab90e489376fd795064db69755c /src/being
parent1322627754578721637fcd25c512ae9ce77836a3 (diff)
downloadmanaplus-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.tar.gz
manaplus-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.tar.bz2
manaplus-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.tar.xz
manaplus-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.zip
Add missing std::move in being.cpp
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 26ed555c2..010fb3182 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -118,6 +118,7 @@
#include "utils/foreach.h"
#include "utils/gettext.h"
#include "utils/likely.h"
+#include "utils/stdmove.h"
#include "utils/timer.h"
#include "debug.h"
@@ -2902,7 +2903,7 @@ void Being::setSpriteColorId(const unsigned int slot,
BeingSlot &beingSlot = mSlots[slot];
beingSlot.spriteId = id;
- beingSlot.color = color;
+ beingSlot.color = STD_MOVE(color);
beingSlot.colorId = colorId;
beingSlot.cardsId = CardsList(nullptr);
recalcSpritesOrder();
@@ -2990,7 +2991,7 @@ void Being::setSpriteCards(const unsigned int slot,
BeingSlot &beingSlot = mSlots[slot];
beingSlot.spriteId = id;
- beingSlot.color = color;
+ beingSlot.color = STD_MOVE(color);
beingSlot.colorId = colorId;
beingSlot.cardsId = CardsList(cards);
recalcSpritesOrder();