1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 12:39:59 +00:00

Signedness fixes

This commit is contained in:
Capostrophic 2019-06-18 14:47:10 +03:00
parent 8d1cad8462
commit 3aa65273c5
3 changed files with 4 additions and 4 deletions

View File

@ -169,8 +169,8 @@ void ESMStore::validate()
if (!fact) if (!fact)
{ {
Log(Debug::Verbose) << "NPC '" << npc.mId << "' (" << npc.mName << ") has nonexistent faction '" << npc.mFaction << "', ignoring it."; Log(Debug::Verbose) << "NPC '" << npc.mId << "' (" << npc.mName << ") has nonexistent faction '" << npc.mFaction << "', ignoring it.";
npc.mFaction = ""; npc.mFaction.clear();
npc.mNpdt.mRank = -1; npc.mNpdt.mRank = 0;
changed = true; changed = true;
} }
} }

View File

@ -40,7 +40,7 @@ struct Clothing
int mType; int mType;
float mWeight; float mWeight;
unsigned short mValue; unsigned short mValue;
short mEnchant; unsigned short mEnchant;
}; };
CTDTstruct mData; CTDTstruct mData;

View File

@ -59,7 +59,7 @@ struct Weapon
short mType; short mType;
unsigned short mHealth; unsigned short mHealth;
float mSpeed, mReach; float mSpeed, mReach;
short mEnchant; // Enchantment points. The real value is mEnchant/10.f unsigned short mEnchant; // Enchantment points. The real value is mEnchant/10.f
unsigned char mChop[2], mSlash[2], mThrust[2]; // Min and max unsigned char mChop[2], mSlash[2], mThrust[2]; // Min and max
int mFlags; int mFlags;
}; // 32 bytes }; // 32 bytes