1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Do not send netpack inside netpack handler.

This commit is contained in:
AlexVinS
2016-10-09 19:38:13 +03:00
parent bb890098df
commit 7db7ece143
2 changed files with 19 additions and 4 deletions

View File

@@ -191,6 +191,8 @@ protected:
virtual CVisitInfo getVisitInfo(int index, const CGHeroInstance *h) const;
virtual void triggerRewardReset() const;
/// Rewards that can be granted by an object
std::vector<CVisitInfo> info;
@@ -315,6 +317,9 @@ public:
class DLL_LINKAGE CGVisitableOPW : public CRewardableObject //objects visitable once per week
{
protected:
void triggerRewardReset() const override;
public:
void initObj(CRandomGenerator & rand) override;