From 09195894cff2bda6e79949f79ac5c35382c5123f Mon Sep 17 00:00:00 2001 From: greye Date: Fri, 21 Sep 2012 12:30:08 +0400 Subject: [PATCH] restore INGR and MGEF --- components/esm/loadingr.cpp | 2 -- components/esm/loadmgef.cpp | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/components/esm/loadingr.cpp b/components/esm/loadingr.cpp index 13d66a632..e39d12a4e 100644 --- a/components/esm/loadingr.cpp +++ b/components/esm/loadingr.cpp @@ -13,7 +13,6 @@ void Ingredient::load(ESMReader &esm) esm.getHNT(mData, "IRDT", 56); mScript = esm.getHNOString("SCRI"); mIcon = esm.getHNOString("ITEX"); -/* // horrible hack to fix broken data in records for (int i=0; i<4; ++i) { @@ -36,7 +35,6 @@ void Ingredient::load(ESMReader &esm) mData.mSkills[i] = -1; } } -*/ } void Ingredient::save(ESMWriter &esm) diff --git a/components/esm/loadmgef.cpp b/components/esm/loadmgef.cpp index c18833e01..bcd1dfaf5 100644 --- a/components/esm/loadmgef.cpp +++ b/components/esm/loadmgef.cpp @@ -3,6 +3,8 @@ #include "esm_reader.hpp" #include "esm_writer.hpp" +#include + namespace { const int NumberOfHardcodedFlags = 143; @@ -36,10 +38,9 @@ void MagicEffect::load(ESMReader &esm) esm.getHNT(mIndex, "INDX"); esm.getHNT(mData, "MEDT", 36); -/* if (mIndex>=0 && mIndex=0 && mIndex