Clear mShared before populating it. Fixes an issue with duplicate records (e.g. dialogue keywords) after loading a savegame.

actorid
scrawl 11 years ago
parent bdb03926c2
commit 79a9c4e048

@ -201,6 +201,7 @@ namespace MWWorld
void setUp() {
//std::sort(mStatic.begin(), mStatic.end(), RecordCmp());
mShared.clear();
mShared.reserve(mStatic.size());
typename std::map<std::string, T>::iterator it = mStatic.begin();
for (; it != mStatic.end(); ++it) {

Loading…
Cancel
Save