From 53c4878d5257d139c63e5ae72b4fecdeb17aa8f7 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 27 Mar 2014 10:01:42 +0100 Subject: [PATCH] fix for inconsistent case in topic records --- apps/opencs/model/world/collection.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/opencs/model/world/collection.hpp b/apps/opencs/model/world/collection.hpp index 9d97e36c7..1fb3e1f1d 100644 --- a/apps/opencs/model/world/collection.hpp +++ b/apps/opencs/model/world/collection.hpp @@ -448,7 +448,8 @@ namespace CSMWorld template void Collection::setRecord (int index, const Record& record) { - if (IdAccessorT().getId (mRecords.at (index).get())!=IdAccessorT().getId (record.get())) + if (Misc::StringUtils::lowerCase (IdAccessorT().getId (mRecords.at (index).get()))!= + Misc::StringUtils::lowerCase (IdAccessorT().getId (record.get()))) throw std::runtime_error ("attempt to change the ID of a record"); mRecords.at (index) = record;