mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
@@ -1019,12 +1019,12 @@ CStackBasicDescriptor::CStackBasicDescriptor(const CCreature *c, TQuantity Count
|
||||
|
||||
const CCreature * CStackBasicDescriptor::getCreature() const
|
||||
{
|
||||
return typeID.toCreature();
|
||||
return typeID.hasValue() ? typeID.toCreature() : nullptr;
|
||||
}
|
||||
|
||||
const Creature * CStackBasicDescriptor::getType() const
|
||||
{
|
||||
return typeID.toEntity(VLC);
|
||||
return typeID.hasValue() ? typeID.toEntity(VLC) : nullptr;
|
||||
}
|
||||
|
||||
CreatureID CStackBasicDescriptor::getId() const
|
||||
|
||||
Reference in New Issue
Block a user