1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
This commit is contained in:
ori.bar
2011-09-10 09:42:09 +00:00
parent 9621cbcaa7
commit ebacb433fe
2 changed files with 3 additions and 3 deletions

View File

@ -376,7 +376,7 @@ void CClient::newGame( CConnection *con, StartInfo *si )
battleints[color] = playerint[color];
playerint[color]->init(cb);
callbacks[color] = std::auto_ptr<CCallback>(cb);
callbacks[color] = boost::shared_ptr<CCallback>(cb);
}
else
{
@ -463,7 +463,7 @@ void CClient::serialize( Handler &h, const int version )
else
nInt = new CPlayerInterface(pid);
callbacks[pid] = std::auto_ptr<CCallback>(new CCallback(gs,pid,this));
callbacks[pid] = boost::shared_ptr<CCallback>(new CCallback(gs,pid,this));
battleints[pid] = playerint[pid] = nInt;
nInt->init(callbacks[pid].get());
nInt->serialize(h, version);