diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-04 21:51:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-04 21:51:47 +0300 |
commit | 8ea8b11a39ad94f521d66d2f182312655ad587b2 (patch) | |
tree | 4554572dba3c9379a3f516ec3b833b593b3d68e5 /src/being/compoundsprite.cpp | |
parent | 81b5f0f63bea5728feb6d8c33d4285fdc0641265 (diff) | |
download | manaverse-8ea8b11a39ad94f521d66d2f182312655ad587b2.tar.gz manaverse-8ea8b11a39ad94f521d66d2f182312655ad587b2.tar.bz2 manaverse-8ea8b11a39ad94f521d66d2f182312655ad587b2.tar.xz manaverse-8ea8b11a39ad94f521d66d2f182312655ad587b2.zip |
In compoundsprite replace mSprites.at() to mSprites[].
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r-- | src/being/compoundsprite.cpp | 8 |
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; } |