1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 13:46:42 +00:00

ptr.getCellRef().getRefId()

This commit is contained in:
Aussiemon 2025-07-13 10:20:58 -06:00
parent bb1214ed69
commit 445cf1742d

View file

@ -305,7 +305,7 @@ namespace MWScript
const ESM::RefId& factionId = ptr.getClass().getPrimaryFaction(ptr); const ESM::RefId& factionId = ptr.getClass().getPrimaryFaction(ptr);
if (factionId.empty()) if (factionId.empty())
{ {
Log(Debug::Warning) << "getNPCFaction(): NPC " << ptr.mRef->mRef.getRefId() << " has no primary faction"; Log(Debug::Warning) << "getNPCFaction(): NPC " << ptr.getCellRef().getRefId() << " has no primary faction";
return "%"; return "%";
} }
@ -322,7 +322,7 @@ namespace MWScript
const ESM::RefId& factionId = ptrClass.getPrimaryFaction(ptr); const ESM::RefId& factionId = ptrClass.getPrimaryFaction(ptr);
if (factionId.empty()) if (factionId.empty())
{ {
Log(Debug::Warning) << "getNPCRank(): NPC " << ptr.mRef->mRef.getRefId() << " has no primary faction"; Log(Debug::Warning) << "getNPCRank(): NPC " << ptr.getCellRef().getRefId() << " has no primary faction";
return "%"; return "%";
} }
@ -333,7 +333,7 @@ namespace MWScript
int rank = ptrClass.getPrimaryFactionRank(ptr); int rank = ptrClass.getPrimaryFactionRank(ptr);
if (rank < 0 || rank > 9) if (rank < 0 || rank > 9)
{ {
Log(Debug::Warning) << "getNPCRank(): NPC " << ptr.mRef->mRef.getRefId() << " has invalid rank " << rank Log(Debug::Warning) << "getNPCRank(): NPC " << ptr.getCellRef().getRefId() << " has invalid rank " << rank
<< " in faction " << factionId; << " in faction " << factionId;
return "%"; return "%";
} }
@ -366,7 +366,7 @@ namespace MWScript
const ESM::RefId& factionId = ptr.getClass().getPrimaryFaction(ptr); const ESM::RefId& factionId = ptr.getClass().getPrimaryFaction(ptr);
if (factionId.empty()) if (factionId.empty())
{ {
Log(Debug::Warning) << "getPCRank(): NPC " << ptr.mRef->mRef.getRefId() << " has no primary faction"; Log(Debug::Warning) << "getPCRank(): NPC " << ptr.getCellRef().getRefId() << " has no primary faction";
return "%"; return "%";
} }
@ -398,7 +398,7 @@ namespace MWScript
const ESM::RefId& factionId = ptr.getClass().getPrimaryFaction(ptr); const ESM::RefId& factionId = ptr.getClass().getPrimaryFaction(ptr);
if (factionId.empty()) if (factionId.empty())
{ {
Log(Debug::Warning) << "getPCNextRank(): NPC " << ptr.mRef->mRef.getRefId() << " has no primary faction"; Log(Debug::Warning) << "getPCNextRank(): NPC " << ptr.getCellRef().getRefId() << " has no primary faction";
return "%"; return "%";
} }