1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-28 14:53:58 +00:00
OpenMW/apps/openmw/mwgui/referenceinterface.cpp
2022-09-22 21:35:26 +03:00

19 lines
436 B
C++

#include "referenceinterface.hpp"
namespace MWGui
{
ReferenceInterface::ReferenceInterface() {}
ReferenceInterface::~ReferenceInterface() {}
void ReferenceInterface::checkReferenceAvailable()
{
// check if count of the reference has become 0
if (!mPtr.isEmpty() && mPtr.getRefData().getCount() == 0)
{
mPtr = MWWorld::Ptr();
onReferenceUnavailable();
}
}
}