Fixes issue with topic info edition.

Also future proofs reference on RefId's string.
7220-lua-add-a-general-purpose-lexical-parser
florent.teppe 2 years ago
parent 5a6a25361a
commit 0de6b79966

@ -490,13 +490,7 @@ namespace CSMWorld
int Collection<ESXRecordT, IdAccessorT>::searchId(const ESM::RefId& id) const
{
std::map<std::string, int>::const_iterator iter
= mIndex.find(Misc::StringUtils::lowerCase(id.getRefIdString()));
if (iter == mIndex.end())
return -1;
return iter->second;
return searchId(id.getRefIdString());
}
template <typename ESXRecordT, typename IdAccessorT>

@ -1242,10 +1242,10 @@ bool CSMWorld::Data::continueLoading(CSMDoc::Messages& messages)
case ESM::REC_DIAL:
{
ESM::Dialogue record;
const std::string& recordIdString = record.mId.getRefIdString();
bool isDeleted = false;
record.load(*mReader, isDeleted);
const std::string& recordIdString = record.mId.getRefIdString();
if (isDeleted)
{

Loading…
Cancel
Save