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:
parent
1408269aeb
commit
79592d6fbb
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user