summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-04 21:51:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-04 21:51:47 +0300
commit8ea8b11a39ad94f521d66d2f182312655ad587b2 (patch)
tree4554572dba3c9379a3f516ec3b833b593b3d68e5 /src
parent81b5f0f63bea5728feb6d8c33d4285fdc0641265 (diff)
downloadplus-8ea8b11a39ad94f521d66d2f182312655ad587b2.tar.gz
plus-8ea8b11a39ad94f521d66d2f182312655ad587b2.tar.bz2
plus-8ea8b11a39ad94f521d66d2f182312655ad587b2.tar.xz
plus-8ea8b11a39ad94f521d66d2f182312655ad587b2.zip
In compoundsprite replace mSprites.at() to mSprites[].
Diffstat (limited to 'src')
-rw-r--r--src/being/compoundsprite.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index 0ec252961..de0e9ef24 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -267,10 +267,10 @@ void CompoundSprite::addSprite(Sprite *const sprite)
void CompoundSprite::setSprite(const size_t layer, Sprite *const sprite)
{
// Skip if it won't change anything
- if (mSprites.at(layer) == sprite)
+ if (mSprites[layer] == sprite)
return;
- delete mSprites.at(layer);
+ delete mSprites[layer];
mSprites[layer] = sprite;
mNeedsRedraw = true;
}
@@ -278,10 +278,10 @@ void CompoundSprite::setSprite(const size_t layer, Sprite *const sprite)
void CompoundSprite::removeSprite(const int layer)
{
// Skip if it won't change anything
- if (!mSprites.at(layer))
+ if (!mSprites[layer])
return;
- delete2(mSprites.at(layer));
+ delete2(mSprites[layer]);
mNeedsRedraw = true;
}