aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2014-07-17 16:41:32 +0200
committeruruk2014-07-17 16:41:32 +0200
commit2203b7df8c6d212899d86bb7460526b670ad44f1 (patch)
treebc96dfa7d9bf0f77b528b4582da635ec176f02f0 /engines
parentd9e82f8f8e1db2f5a3b03a512643b46553bcc88a (diff)
downloadscummvm-rg350-2203b7df8c6d212899d86bb7460526b670ad44f1.tar.gz
scummvm-rg350-2203b7df8c6d212899d86bb7460526b670ad44f1.tar.bz2
scummvm-rg350-2203b7df8c6d212899d86bb7460526b670ad44f1.zip
CGE2: Smaller revision regarding Spare.
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) {