From 0fa116b47dddc6fa7322eec22fb20196b239d1a9 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 23 Jan 2019 00:20:51 +0200 Subject: [PATCH] [Client] Remove useless lines in RecordHelper --- apps/openmw/mwmp/RecordHelper.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/openmw/mwmp/RecordHelper.cpp b/apps/openmw/mwmp/RecordHelper.cpp index 86cc6417d..c2660104d 100644 --- a/apps/openmw/mwmp/RecordHelper.cpp +++ b/apps/openmw/mwmp/RecordHelper.cpp @@ -287,7 +287,6 @@ void RecordHelper::overrideEnchantmentRecord(const mwmp::EnchantmentRecord& reco return; } - bool isExistingId = doesEnchantmentRecordExist(recordData.mId); MWBase::World *world = MWBase::Environment::get().getWorld(); if (record.baseId.empty()) @@ -419,9 +418,6 @@ void RecordHelper::overrideSpellRecord(const mwmp::SpellRecord& record) world->getModifiableStore().overrideRecord(finalData); } - - if (isExistingId) - world->updatePtrsWithRefId(recordData.mId); } void RecordHelper::overrideArmorRecord(const mwmp::ArmorRecord& record)