From 2203b7df8c6d212899d86bb7460526b670ad44f1 Mon Sep 17 00:00:00 2001 From: uruk Date: Thu, 17 Jul 2014 16:41:32 +0200 Subject: CGE2: Smaller revision regarding Spare. --- engines/cge2/spare.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines') 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) { -- cgit v1.2.3