Fix for broken unsetRefNum

openmw-35
scrawl 10 years ago
parent c697142a5d
commit 14923f3e8b

@ -5,19 +5,19 @@
namespace MWWorld namespace MWWorld
{ {
ESM::RefNum CellRef::getRefNum() const const ESM::RefNum& CellRef::getRefNum() const
{ {
return mCellRef.mRefNum; return mCellRef.mRefNum;
} }
bool CellRef::hasContentFile() const bool CellRef::hasContentFile() const
{ {
return getRefNum().hasContentFile(); return mCellRef.mRefNum.hasContentFile();
} }
void CellRef::unsetRefNum() void CellRef::unsetRefNum()
{ {
getRefNum().unset(); mCellRef.mRefNum.unset();
} }
std::string CellRef::getRefId() const std::string CellRef::getRefId() const

@ -23,7 +23,7 @@ namespace MWWorld
} }
// Note: Currently unused for items in containers // Note: Currently unused for items in containers
ESM::RefNum getRefNum() const; const ESM::RefNum& getRefNum() const;
// Set RefNum to its default state. // Set RefNum to its default state.
void unsetRefNum(); void unsetRefNum();

Loading…
Cancel
Save