Remove null check in GetPosition (#1109)

Get ready for null pointer errors
This commit is contained in:
David Markowitz 2023-06-06 22:48:41 -07:00 committed by GitHub
parent b589755655
commit 12d7ab9034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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