1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/apps/openmw/mwgui/referenceinterface.cpp
2023-12-31 17:12:46 +00:00

19 lines
452 B
C++

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