浏览代码

Merge pull request #2329 from rilian-la-te/fix-M-stack

CCreatureHandler: fix positive morale
Ivan Savenko 2 年之前
父节点
当前提交
1c55835b8b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      lib/CCreatureHandler.cpp
  2. 1 1
      lib/Rect.h

+ 1 - 1
lib/CCreatureHandler.cpp

@@ -1097,7 +1097,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, CLegacyConfigPars
 			case 'F':
 				b.type = BonusType::FLYING; break;
 			case 'm':
-				b.type = BonusType::MORALE; break;
+				b.type = BonusType::MORALE;
 				b.val = 1;
 				b.valType = BonusValueType::INDEPENDENT_MAX;
 				break;

+ 1 - 1
lib/Rect.h

@@ -160,7 +160,7 @@ public:
 		h & x;
 		h & y;
 		h & w;
-		h & h;
+		h & this->h;
 	}
 };