diff options
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/cge2_main.cpp | 4 | ||||
-rw-r--r-- | engines/cge2/spare.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index e0cd688988..938ad849be 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -310,9 +310,9 @@ Sprite *CGE2Engine::loadSprite(const char *fname, int ref, int scene, V3D &pos) for (int i = 0; i < kActions; i++) sprite->_actionCtrl[i]._cnt = cnt[i]; - - return sprite; } + + return sprite; } void CGE2Engine::loadScript(const char *fname) { 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) { |