mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
CGE2: Smaller revision regarding Spare.
This commit is contained in:
parent
d9e82f8f8e
commit
2203b7df8c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user