mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Reduced number of accesses to CGObjectInstance::subID
This commit is contained in:
@ -373,7 +373,7 @@ void CRewardableObject::newTurn(CRandomGenerator & rand) const
|
||||
|
||||
void CRewardableObject::initObj(CRandomGenerator & rand)
|
||||
{
|
||||
VLC->objtypeh->getHandlerFor(ID, subID)->configureObject(this, rand);
|
||||
getObjectHandler()->configureObject(this, rand);
|
||||
}
|
||||
|
||||
CRewardableObject::CRewardableObject()
|
||||
|
Reference in New Issue
Block a user