From a7104377d6a57afcbdf4fb8ba319c06deda16c7f Mon Sep 17 00:00:00 2001 From: Henning Koehler Date: Thu, 7 Sep 2017 00:27:26 +1200 Subject: [PATCH] fixed CREATURE_TYPE_LIMITER for creatures without a stack instance (#374) --- lib/HeroBonus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/HeroBonus.cpp b/lib/HeroBonus.cpp index db2671c2d..df749ad8c 100644 --- a/lib/HeroBonus.cpp +++ b/lib/HeroBonus.cpp @@ -1221,6 +1221,8 @@ const CCreature * retrieveCreature(const CBonusSystemNode *node) { case CBonusSystemNode::CREATURE: return (static_cast(node)); + case CBonusSystemNode::STACK_BATTLE: + return (static_cast(node))->type; default: const CStackInstance *csi = retreiveStackInstance(node); if(csi)