1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Definitelly fixed #268

This commit is contained in:
DjWarmonger 2009-12-01 11:47:52 +00:00
parent 1408269aeb
commit 79592d6fbb
2 changed files with 3 additions and 3 deletions

View File

@ -3902,8 +3902,8 @@ void CGOnceVisitable::onHeroVisit( const CGHeroInstance * h ) const
break;
case 2: //res
iw.text.addTxt(MetaString::ADVOB_TXT, txtid);
iw.components.push_back(Component(Component::RESOURCE,bonusType,bonusVal,0));
cb->giveResource(h->getOwner(),bonusType,bonusVal);
iw.components.push_back (Component(Component::RESOURCE, bonusType, bonusVal, 0));
cb->giveResource(h->getOwner(), bonusType, bonusVal);
break;
}
if(ID == 105 && artOrRes == 1)

View File

@ -905,7 +905,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & static_cast<CPlayersVisited&>(*this);;
h & bonusType & bonusVal;
h & artOrRes & bonusType & bonusVal;
}
};