mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Reduced number of accesses to CGObjectInstance::subID
This commit is contained in:
@ -28,14 +28,4 @@ CObjectHandler::CObjectHandler()
|
||||
logGlobal->trace("\t\tDone loading resource prices!");
|
||||
}
|
||||
|
||||
CGObjectInstanceBySubIdFinder::CGObjectInstanceBySubIdFinder(CGObjectInstance * obj) : obj(obj)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool CGObjectInstanceBySubIdFinder::operator()(CGObjectInstance * obj) const
|
||||
{
|
||||
return this->obj->subID == obj->subID;
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user