mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Fix build errors & warnings
This commit is contained in:
parent
f5745749a6
commit
1e8182220a
@ -102,7 +102,7 @@ namespace CSMDoc
|
||||
|
||||
ESM::ESMWriter& writer = mState.getWriter();
|
||||
CSMWorld::RecordBase::State state = mCollection.getRecord (stage).mState;
|
||||
CollectionT::ESXRecord record = mCollection.getRecord (stage).get();
|
||||
typename CollectionT::ESXRecord record = mCollection.getRecord (stage).get();
|
||||
|
||||
if (state == CSMWorld::RecordBase::State_Modified ||
|
||||
state == CSMWorld::RecordBase::State_ModifiedOnly ||
|
||||
|
@ -46,7 +46,7 @@ namespace CSMWorld
|
||||
loadRecord (record, reader);
|
||||
|
||||
std::string id = IdAccessorT().getId (record);
|
||||
int index = searchId (id);
|
||||
int index = this->searchId (id);
|
||||
|
||||
if (isRecordDeleted(record))
|
||||
{
|
||||
@ -60,13 +60,13 @@ namespace CSMWorld
|
||||
|
||||
if (base)
|
||||
{
|
||||
removeRows (index, 1);
|
||||
this->removeRows (index, 1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Record<ESXRecordT> baseRecord = getRecord (index);
|
||||
Record<ESXRecordT> baseRecord = this->getRecord (index);
|
||||
baseRecord.mState = RecordBase::State_Deleted;
|
||||
setRecord (index, baseRecord);
|
||||
this->setRecord (index, baseRecord);
|
||||
return index;
|
||||
}
|
||||
|
||||
|
@ -7,10 +7,12 @@
|
||||
ESM::CellRef::CellRef()
|
||||
: mScale(1.0f),
|
||||
mFactionRank(-2),
|
||||
mEnchantmentCharge(-1),
|
||||
mGoldValue(1),
|
||||
mChargeInt(-1),
|
||||
mEnchantmentCharge(-1.0f),
|
||||
mGoldValue(1),
|
||||
mTeleport(false),
|
||||
mLockLevel(0),
|
||||
mReferenceBlocked(-1),
|
||||
mIsDeleted(false)
|
||||
{}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user