summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}