mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Fix a wrong use of reference that causes potential crash
This commit is contained in:
parent
471bbd0021
commit
37b9d2fb0c
1 changed files with 8 additions and 8 deletions
|
@ -11,9 +11,9 @@ namespace MWMechanics
|
|||
{
|
||||
/// \brief AiPackage to have an actor avoid an opening door
|
||||
/** The AI will retreat from the door until it has finished opening, walked far away from it, or one second has passed, in an attempt to avoid it
|
||||
**/
|
||||
class AiAvoidDoor : public AiPackage
|
||||
{
|
||||
**/
|
||||
class AiAvoidDoor : public AiPackage
|
||||
{
|
||||
public:
|
||||
/// Avoid door until the door is fully open
|
||||
AiAvoidDoor(const MWWorld::Ptr& doorPtr);
|
||||
|
@ -29,10 +29,10 @@ namespace MWMechanics
|
|||
|
||||
private:
|
||||
float mDuration;
|
||||
const MWWorld::Ptr& mDoorPtr;
|
||||
MWWorld::Ptr mDoorPtr;
|
||||
ESM::Position mLastPos;
|
||||
float mAdjAngle;
|
||||
};
|
||||
}
|
||||
#endif
|
||||
float mAdjAngle;
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue