mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-09 14:27:10 +00:00
Remove null check in GetPosition (#1109)
Get ready for null pointer errors
This commit is contained in:
parent
b589755655
commit
12d7ab9034
@ -1827,8 +1827,6 @@ bool Entity::IsSleeping() const {
|
|||||||
|
|
||||||
|
|
||||||
const NiPoint3& Entity::GetPosition() const {
|
const NiPoint3& Entity::GetPosition() const {
|
||||||
if (!this) return NiPoint3::ZERO;
|
|
||||||
|
|
||||||
auto* controllable = GetComponent<ControllablePhysicsComponent>();
|
auto* controllable = GetComponent<ControllablePhysicsComponent>();
|
||||||
|
|
||||||
if (controllable != nullptr) {
|
if (controllable != nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user