CGE2: Remove unnecessary parameter from Spare::sync().

This commit is contained in:
uruk 2014-07-03 09:24:25 +02:00
parent f155546ecb
commit 927be46c87
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

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

View File

@ -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();
};