1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/apps/openmw/mwmechanics/creaturecustomdataresetter.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
401 B
C++
Raw Normal View History

#ifndef OPENMW_MWMECHANICS_CREATURECUSTOMDATARESETTER_H
#define OPENMW_MWMECHANICS_CREATURECUSTOMDATARESETTER_H
#include "../mwworld/ptr.hpp"
namespace MWMechanics
{
struct CreatureCustomDataResetter
{
MWWorld::Ptr mPtr;
~CreatureCustomDataResetter()
{
if (!mPtr.isEmpty())
mPtr.getRefData().setCustomData({});
}
};
}
#endif