aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/spare.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/cge2/spare.cpp b/engines/cge2/spare.cpp
index 93c8a2674d..756f937ab5 100644
--- a/engines/cge2/spare.cpp
+++ b/engines/cge2/spare.cpp
@@ -73,11 +73,10 @@ Sprite *Spare::take(int ref) {
for (uint i = 0; i < _container.size(); ++i) {
if (spr == _container[i]) {
_container.remove_at(i);
- break;
+ return spr;
}
}
}
- return spr;
}
void Spare::takeScene(int cav) {
@@ -94,7 +93,7 @@ void Spare::takeScene(int cav) {
}
void Spare::store(Sprite *spr) {
- _container.insert_at(_container.size(), spr);
+ _container.push_back(spr);
}
void Spare::update(Sprite *spr) {