mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
fixed CREATURE_TYPE_LIMITER for creatures without a stack instance (#374)
This commit is contained in:
parent
610740011c
commit
a7104377d6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user