Merge branch 'main' into components-wheeeee

This commit is contained in:
David Markowitz 2023-06-09 04:05:55 -07:00
commit ddc5f0e117

View File

@ -1244,9 +1244,7 @@ bool Entity::IsSleeping() const {
const NiPoint3& Entity::GetPosition() const {
if (!this) return NiPoint3::ZERO;
auto controllable = GetComponent<ControllablePhysicsComponent>();
auto* controllable = GetComponent<ControllablePhysicsComponent>();
if (controllable != nullptr) {
return controllable->GetPosition();