diff options
author | uruk | 2014-07-03 09:24:25 +0200 |
---|---|---|
committer | uruk | 2014-07-04 13:01:28 +0200 |
commit | 927be46c8738ea474476e94ed9868be3c4c0dcf6 (patch) | |
tree | e7522fbec95506d74e87f7679a0d9f5a0c54e85c /engines/cge2 | |
parent | f155546ecb03e0a308cdb6b2308ab01c992e71ce (diff) | |
download | scummvm-rg350-927be46c8738ea474476e94ed9868be3c4c0dcf6.tar.gz scummvm-rg350-927be46c8738ea474476e94ed9868be3c4c0dcf6.tar.bz2 scummvm-rg350-927be46c8738ea474476e94ed9868be3c4c0dcf6.zip |
CGE2: Remove unnecessary parameter from Spare::sync().
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/saveload.cpp | 4 | ||||
-rw-r--r-- | engines/cge2/spare.cpp | 2 | ||||
-rw-r--r-- | engines/cge2/spare.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge2/saveload.cpp b/engines/cge2/saveload.cpp index 8d0237e702..cb1e981318 100644 --- a/engines/cge2/saveload.cpp +++ b/engines/cge2/saveload.cpp @@ -253,8 +253,8 @@ void CGE2Engine::syncGame(Common::SeekableReadStream *readStream, Common::WriteS // Synchronise header data syncHeader(s); - // Synchronise _spare and mingled with it, the sprites of the heroes' - _spare->sync(s, _heroTab); + // Synchronise _spare + _spare->sync(s); if (s.isSaving()) { // Save the references of the items in the heroes pockets: diff --git a/engines/cge2/spare.cpp b/engines/cge2/spare.cpp index 4bc4a5f9d8..a0c3f741eb 100644 --- a/engines/cge2/spare.cpp +++ b/engines/cge2/spare.cpp @@ -29,7 +29,7 @@ namespace CGE2 { -void Spare::sync(Common::Serializer &s, HeroTab *heroTab[2]) { +void Spare::sync(Common::Serializer &s) { if (s.isSaving()) { int size = 0; for (uint i = 0; i < _container.size(); i++) diff --git a/engines/cge2/spare.h b/engines/cge2/spare.h index d34ca4855e..7dc6ce60f5 100644 --- a/engines/cge2/spare.h +++ b/engines/cge2/spare.h @@ -46,7 +46,7 @@ public: void dispose(Sprite *spr); void dispose(int ref); void dispose(); - void sync(Common::Serializer &s, HeroTab *heroTab[2]); + void sync(Common::Serializer &s); uint16 count() { return _container.size(); } void clear(); }; |