mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Clear mShared before populating it. Fixes an issue with duplicate records (e.g. dialogue keywords) after loading a savegame.
This commit is contained in:
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…
x
Reference in New Issue
Block a user