mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue