From b899d43a33791edd272ec79e339fc951501889a4 Mon Sep 17 00:00:00 2001 From: Aesylwinn Date: Sat, 24 Sep 2016 16:45:08 -0400 Subject: [PATCH] Allow base plugins to overwrite referencables made in other base plugins. --- apps/opencs/model/world/refiddata.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/opencs/model/world/refiddata.hpp b/apps/opencs/model/world/refiddata.hpp index 59cad6a66..94f641edc 100644 --- a/apps/opencs/model/world/refiddata.hpp +++ b/apps/opencs/model/world/refiddata.hpp @@ -175,6 +175,12 @@ namespace CSMWorld { mContainer[index].setModified(record); } + else + { + // Overwrite + mContainer[index].setModified(record); + mContainer[index].merge(); + } } return index;