From 174533598214019a61406bdf568d9d4710145ea6 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 3 Jul 2014 10:56:05 +0200 Subject: [PATCH] body part table fix: forgot to include body parts in ID listings --- apps/opencs/model/world/data.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/opencs/model/world/data.cpp b/apps/opencs/model/world/data.cpp index aad5d3fa2..d07e8784e 100644 --- a/apps/opencs/model/world/data.cpp +++ b/apps/opencs/model/world/data.cpp @@ -712,6 +712,7 @@ bool CSMWorld::Data::hasId (const std::string& id) const getJournals().searchId (id)!=-1 || getCells().searchId (id)!=-1 || getEnchantments().searchId (id)!=-1 || + getBodyParts().searchId (id)!=-1 || getReferenceables().searchId (id)!=-1; } @@ -731,6 +732,7 @@ int CSMWorld::Data::count (RecordBase::State state) const count (state, mSpells) + count (state, mCells) + count (state, mEnchantments) + + count (state, mBodyParts) + count (state, mReferenceables); } @@ -772,6 +774,7 @@ std::vector CSMWorld::Data::getIds (bool listDeleted) const appendIds (ids, mJournals, listDeleted); appendIds (ids, mCells, listDeleted); appendIds (ids, mEnchantments, listDeleted); + appendIds (ids, mBodyParts, listDeleted); appendIds (ids, mReferenceables, listDeleted); std::sort (ids.begin(), ids.end());