1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-28 08:37:12 +00:00

Mark MWPhysics::Actor constructor and assignment operators as deleted

This commit is contained in:
elsid 2022-09-16 23:48:42 +02:00
parent bceca33699
commit aeb4611d6c
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -33,6 +33,10 @@ namespace MWPhysics
bool canWaterWalk, DetourNavigator::CollisionShapeType collisionShapeType); bool canWaterWalk, DetourNavigator::CollisionShapeType collisionShapeType);
~Actor() override; ~Actor() override;
Actor(const Actor&) = delete;
Actor& operator=(const Actor&) = delete;
/** /**
* Sets the collisionMode for this actor. If disabled, the actor can fly and clip geometry. * Sets the collisionMode for this actor. If disabled, the actor can fly and clip geometry.
*/ */
@ -205,9 +209,6 @@ namespace MWPhysics
PhysicsTaskScheduler* mTaskScheduler; PhysicsTaskScheduler* mTaskScheduler;
Actor(const Actor&);
Actor& operator=(const Actor&);
inline void updateScaleUnsafe(); inline void updateScaleUnsafe();
inline void updateCollisionObjectPositionUnsafe(); inline void updateCollisionObjectPositionUnsafe();