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