From 12d7ab9034f148ea53407160c13606dc2c0602bf Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Tue, 6 Jun 2023 22:48:41 -0700 Subject: [PATCH] Remove null check in GetPosition (#1109) Get ready for null pointer errors --- dGame/Entity.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index 6de6ba62..907e8e63 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -1827,8 +1827,6 @@ bool Entity::IsSleeping() const { const NiPoint3& Entity::GetPosition() const { - if (!this) return NiPoint3::ZERO; - auto* controllable = GetComponent(); if (controllable != nullptr) {