mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-08 22:07: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 {
|
||||
if (!this) return NiPoint3::ZERO;
|
||||
|
||||
auto* controllable = GetComponent<ControllablePhysicsComponent>();
|
||||
|
||||
if (controllable != nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user