1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed desync due to uninitialized objects. Added some logging. RMG maps don't work yet, though.

This commit is contained in:
DjWarmonger
2014-07-27 19:30:17 +02:00
parent 3acbda75ef
commit fe292dfa1d
5 changed files with 14 additions and 0 deletions

View File

@ -632,6 +632,11 @@ std::string CGResource::getHoverText(PlayerColor player) const
return VLC->generaltexth->restypes[subID];
}
CGResource::CGResource()
{
amount = 0;
}
void CGResource::initObj()
{
blockVisit = true;