1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 20:19:57 +00:00

Fix a wrong use of reference that causes potential crash

This commit is contained in:
scrawl 2014-05-15 01:53:52 +02:00
parent 471bbd0021
commit 37b9d2fb0c

View file

@ -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