1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

#1409 should not crash anymore.

Fixed crash on serializing empty path. [How did it got there...?]
operator<< for boost::optional.
This commit is contained in:
Michał W. Urbańczyk
2013-08-18 15:46:28 +00:00
parent 2e92bfb617
commit 3b42cff3ec
5 changed files with 69 additions and 6 deletions

View File

@@ -290,6 +290,15 @@ void CClient::loadGame( const std::string & fname )
serv->enableStackSendingByID();
serv->disableSmartPointerSerialization();
// logGlobal->traceStream() << "Objects:";
// for(int i = 0; i < gs->map->objects.size(); i++)
// {
// auto o = gs->map->objects[i];
// if(o)
// logGlobal->traceStream() << boost::format("\tindex=%5d, id=%5d; address=%5d, pos=%s, name=%s") % i % o->id % (int)o.get() % o->pos % o->getHoverText();
// else
// logGlobal->traceStream() << boost::format("\tindex=%5d --- nullptr") % i;
// }
}
void CClient::newGame( CConnection *con, StartInfo *si )