CGE2: Smaller revision regarding Spare.

This commit is contained in:
uruk 2014-07-17 16:41:32 +02:00
parent d9e82f8f8e
commit 2203b7df8c

View File

@ -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) {