mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Converted creature ID and spell ID to new form
This commit is contained in:
@@ -752,7 +752,7 @@ void CStackInstance::giveStackExp(TExpType exp)
|
||||
|
||||
void CStackInstance::setType(const CreatureID & creID)
|
||||
{
|
||||
if(creID >= 0 && creID < VLC->creh->objects.size())
|
||||
if(creID.getNum() >= 0 && creID.getNum() < VLC->creh->objects.size())
|
||||
setType(VLC->creh->objects[creID]);
|
||||
else
|
||||
setType((const CCreature*)nullptr);
|
||||
|
||||
Reference in New Issue
Block a user