Browse Source

Merge pull request #554 from dydzio0614/MagicSchoolFix

Fix magic school gold payment (bug #3043)
Alexander Shishkin 6 years ago
parent
commit
8b6316c8ee
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/mapObjects/CRewardableObject.cpp

+ 2 - 0
lib/mapObjects/CRewardableObject.cpp

@@ -988,7 +988,9 @@ void CGVisitableOPH::initObj(CRandomGenerator & rand)
 			info.resize(2);
 			info[0].reward.primary[PrimarySkill::SPELL_POWER] = 1;
 			info[1].reward.primary[PrimarySkill::KNOWLEDGE] = 1;
+			info[0].limiter.resources[Res::GOLD] = 1000;
 			info[0].reward.resources[Res::GOLD] = -1000;
+			info[1].limiter.resources[Res::GOLD] = 1000;
 			info[1].reward.resources[Res::GOLD] = -1000;
 			onSelect.addTxt(MetaString::ADVOB_TXT, 71);
 			onVisited.addTxt(MetaString::ADVOB_TXT, 72);