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 {
static bool IsMediumOrLarge(CActor& act) {
if (TCastToConstPtr<CPatterned> pat = act)
static bool IsMediumOrLarge(const CActor& act) {
if (const TCastToConstPtr<CPatterned> pat = act) {
return pat->GetKnockBackController().GetVariant() != EKnockBackVariant::Small;
}
return false;
}