CActorModelParticles: Make IsMediumOrLarge() parameter a const reference

Nothing about the parameter is modified.
This commit is contained in:
Lioncash 2020-04-19 21:42:26 -04:00
parent 2185dc30f1
commit ecdedb5d8f
1 changed files with 3 additions and 2 deletions

View File

@ -18,9 +18,10 @@
namespace urde { namespace urde {
static bool IsMediumOrLarge(CActor& act) { static bool IsMediumOrLarge(const CActor& act) {
if (TCastToConstPtr<CPatterned> pat = act) if (const TCastToConstPtr<CPatterned> pat = act) {
return pat->GetKnockBackController().GetVariant() != EKnockBackVariant::Small; return pat->GetKnockBackController().GetVariant() != EKnockBackVariant::Small;
}
return false; return false;
} }