1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fixed #768. More logging for #774.

Fixed crash on town time event (-1 and -2 "structures" present on buildings list).
This commit is contained in:
Michał W. Urbańczyk
2011-08-25 20:02:38 +00:00
parent 77be397bf6
commit 4c3ed24fe1
8 changed files with 25 additions and 14 deletions

View File

@@ -1334,7 +1334,6 @@ void CPlayerInterface::showShipyardDialog(const IShipyard *obj)
void CPlayerInterface::newObject( const CGObjectInstance * obj )
{
boost::unique_lock<boost::recursive_mutex> un(*pim);
CGI->mh->printObject(obj);
//we might have built a boat in shipyard in opened town screen
if(obj->ID == 8
&& LOCPLINT->castleInt