From 5580f803fd6ce9e744896522d30dbfc7a35ed345 Mon Sep 17 00:00:00 2001 From: Rob Cutmore Date: Mon, 2 May 2016 07:28:32 -0400 Subject: [PATCH] Editor: Prevent duplicate pathgrids (Bug #3342) --- apps/opencs/model/world/data.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/opencs/model/world/data.cpp b/apps/opencs/model/world/data.cpp index 5c81d3b08b..414329aa24 100644 --- a/apps/opencs/model/world/data.cpp +++ b/apps/opencs/model/world/data.cpp @@ -1139,7 +1139,8 @@ bool CSMWorld::Data::hasId (const std::string& id) const getBodyParts().searchId (id)!=-1 || getSoundGens().searchId (id)!=-1 || getMagicEffects().searchId (id)!=-1 || - getReferenceables().searchId (id)!=-1; + getReferenceables().searchId (id)!=-1 || + getPathgrids().searchId (id)!=-1; } int CSMWorld::Data::count (RecordBase::State state) const