Merge remote-tracking branch 'dteviot/FixWarnings'

This commit is contained in:
Marc Zinnschlag 2015-03-07 18:34:29 +01:00
commit ba482fa41f
65 changed files with 105 additions and 101 deletions

View file

@ -10,7 +10,7 @@ namespace ESM {
void Creature::load(ESMReader &esm)
{
mPersistent = esm.getRecordFlags() & 0x0400;
mPersistent = (esm.getRecordFlags() & 0x0400) != 0;
mAiPackage.mList.clear();
mInventory.mList.clear();

View file

@ -10,7 +10,7 @@ namespace ESM
void NPC::load(ESMReader &esm)
{
mPersistent = esm.getRecordFlags() & 0x0400;
mPersistent = (esm.getRecordFlags() & 0x0400) != 0;
mSpells.mList.clear();
mInventory.mList.clear();

View file

@ -10,7 +10,7 @@ namespace ESM
void Static::load(ESMReader &esm)
{
mPersistent = esm.getRecordFlags() & 0x0400;
mPersistent = (esm.getRecordFlags() & 0x0400) != 0;
mModel = esm.getHNString("MODL");
}