diff --git a/src/common/TES4Record.cpp b/src/common/TES4Record.cpp index 02faec2..8c589a6 100644 --- a/src/common/TES4Record.cpp +++ b/src/common/TES4Record.cpp @@ -132,6 +132,16 @@ void TES4Record::IsESM(bool value) SETBIT(flags, fIsESM, value); } +// bool TES4Record::IsLookupStrings() const +// { +// // fIsTurnOffFire = LookupStrings +// return IsLoaded() ? (flags & fIsTurnOffFire) != 0 : false; +// } + +// void TES4Record::IsLookupStrings(bool value) +// { +// SETBIT(flags, fIsTurnOffFire, value); +// } uint32_t TES4Record::GetType() { diff --git a/src/game/Skyrim/Records/ACTIRecord.cpp b/src/game/Skyrim/Records/ACTIRecord.cpp index 3800555..00028e2 100644 --- a/src/game/Skyrim/Records/ACTIRecord.cpp +++ b/src/game/Skyrim/Records/ACTIRecord.cpp @@ -111,7 +111,7 @@ int32_t ACTIRecord::ParseRecord(unsigned char *buffer, unsigned char *end_buffer { uint32_t subType = 0; uint32_t subSize = 0; - StringLookups *LookupStrings = GetParentMod()->TES4.LookupStrings; + auto LookupStrings = GetParentMod()->LookupStrings(); while(buffer < end_buffer) { subType = *(uint32_t *)buffer; diff --git a/src/game/Skyrim/Records/ALCHRecord.cpp b/src/game/Skyrim/Records/ALCHRecord.cpp index 99ea24d..4214779 100644 --- a/src/game/Skyrim/Records/ALCHRecord.cpp +++ b/src/game/Skyrim/Records/ALCHRecord.cpp @@ -189,7 +189,7 @@ int32_t ALCHRecord::ParseRecord(unsigned char *buffer, unsigned char *end_buffer { uint32_t subType = 0; uint32_t subSize = 0; - StringLookups *LookupStrings = GetParentMod()->TES4.LookupStrings; + auto LookupStrings = GetParentMod()->LookupStrings(); while(buffer < end_buffer) { subType = *(uint32_t *)buffer; diff --git a/src/game/Skyrim/Records/APPARecord.cpp b/src/game/Skyrim/Records/APPARecord.cpp index 55e99e5..e0b7d14 100644 --- a/src/game/Skyrim/Records/APPARecord.cpp +++ b/src/game/Skyrim/Records/APPARecord.cpp @@ -125,7 +125,7 @@ int32_t APPARecord::ParseRecord(unsigned char *buffer, unsigned char *end_buffer { uint32_t subType = 0; uint32_t subSize = 0; - StringLookups *LookupStrings = GetParentMod()->TES4.LookupStrings; + auto LookupStrings = GetParentMod()->LookupStrings(); while(buffer < end_buffer) { subType = *(uint32_t *)buffer; diff --git a/src/game/Skyrim/Records/COLLRecord.cpp b/src/game/Skyrim/Records/COLLRecord.cpp index 9405598..b4022ce 100644 --- a/src/game/Skyrim/Records/COLLRecord.cpp +++ b/src/game/Skyrim/Records/COLLRecord.cpp @@ -132,7 +132,7 @@ int32_t COLLRecord::ParseRecord(unsigned char *buffer, unsigned char *end_buffer { uint32_t subType = 0; uint32_t subSize = 0; - StringLookups *LookupStrings = GetParentMod()->TES4.LookupStrings; + auto LookupStrings = GetParentMod()->LookupStrings(); while(buffer < end_buffer) { subType = *(uint32_t *)buffer; diff --git a/src/game/Skyrim/Records/SHOURecord.cpp b/src/game/Skyrim/Records/SHOURecord.cpp index e985e3d..792d643 100644 --- a/src/game/Skyrim/Records/SHOURecord.cpp +++ b/src/game/Skyrim/Records/SHOURecord.cpp @@ -121,7 +121,7 @@ int32_t SHOURecord::ParseRecord(unsigned char *buffer, unsigned char *end_buffer { uint32_t subType = 0; uint32_t subSize = 0; - StringLookups *LookupStrings = GetParentMod()->TES4.LookupStrings; + auto LookupStrings = GetParentMod()->LookupStrings(); while(buffer < end_buffer) { subType = *(uint32_t *)buffer; diff --git a/src/game/Skyrim/Records/WOOPRecord.cpp b/src/game/Skyrim/Records/WOOPRecord.cpp index 7b6425e..b444729 100644 --- a/src/game/Skyrim/Records/WOOPRecord.cpp +++ b/src/game/Skyrim/Records/WOOPRecord.cpp @@ -76,7 +76,7 @@ int32_t WOOPRecord::ParseRecord(unsigned char *buffer, unsigned char *end_buffer { uint32_t subType = 0; uint32_t subSize = 0; - StringLookups *LookupStrings = GetParentMod()->TES4.LookupStrings; + auto LookupStrings = GetParentMod()->LookupStrings(); while(buffer < end_buffer) { subType = *(uint32_t *)buffer;