From 8ea8b11a39ad94f521d66d2f182312655ad587b2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Mar 2016 21:51:47 +0300 Subject: In compoundsprite replace mSprites.at() to mSprites[]. --- src/being/compoundsprite.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/being/compoundsprite.cpp') 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; } -- cgit v1.2.3-70-g09d2