1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

fixed CREATURE_TYPE_LIMITER for creatures without a stack instance (#374)

This commit is contained in:
Henning Koehler 2017-09-07 00:27:26 +12:00 committed by ArseniyShestakov
parent 610740011c
commit a7104377d6

View File

@ -1221,6 +1221,8 @@ const CCreature * retrieveCreature(const CBonusSystemNode *node)
{ {
case CBonusSystemNode::CREATURE: case CBonusSystemNode::CREATURE:
return (static_cast<const CCreature *>(node)); return (static_cast<const CCreature *>(node));
case CBonusSystemNode::STACK_BATTLE:
return (static_cast<const CStack*>(node))->type;
default: default:
const CStackInstance *csi = retreiveStackInstance(node); const CStackInstance *csi = retreiveStackInstance(node);
if(csi) if(csi)