fixed a bad cast

This commit is contained in:
Marc Zinnschlag 2013-05-01 16:49:34 +02:00
parent 236751ec45
commit f8a331f173

View file

@ -349,7 +349,7 @@ namespace CSMWorld
{
mRecords.push_back (dynamic_cast<const Record<ESXRecordT>&> (record));
mIndex.insert (std::make_pair (Misc::StringUtils::lowerCase (IdAccessorT().getId (
dynamic_cast<const ESXRecordT&> (record))),
dynamic_cast<const Record<ESXRecordT>&> (record).get())),
mRecords.size()-1));
}