mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 13:15:34 +00:00
replaced raw values with enums.
This commit is contained in:
parent
558690b571
commit
e860717105
1 changed files with 2 additions and 2 deletions
|
@ -656,9 +656,9 @@ void CSMTools::ReferenceableCheckStage::npcCheck(
|
||||||
//Don't know what unknown is for
|
//Don't know what unknown is for
|
||||||
int Gold(NPC.mNpdt52.mGold);
|
int Gold(NPC.mNpdt52.mGold);
|
||||||
|
|
||||||
if (NPC.mNpdtType == 12) //12 = autocalculated
|
if (NPC.mNpdtType == ESM::NPC::NPC_WITH_AUTOCALCULATED_STATS) //12 = autocalculated
|
||||||
{
|
{
|
||||||
if ((NPC.mFlags & 0x0008) == 0) //0x0008 = autocalculated flag
|
if ((NPC.mFlags & ESM::NPC::Autocalc) == 0) //0x0008 = autocalculated flag
|
||||||
{
|
{
|
||||||
messages.push_back(id.toString() + "|" + NPC.mId + " mNpdtType or flags mismatch!"); //should not happend?
|
messages.push_back(id.toString() + "|" + NPC.mId + " mNpdtType or flags mismatch!"); //should not happend?
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue