mirror of https://github.com/AxioDL/metaforce.git
CActorModelParticles: Make IsMediumOrLarge() parameter a const reference
Nothing about the parameter is modified.
This commit is contained in:
parent
2185dc30f1
commit
ecdedb5d8f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue